You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/target/ppc
Aditya Gupta 46d03bb23d hw/ppc: Fix build error with CONFIG_POWERNV disabled
Currently when CONFIG_POWERNV is not enabled, the build fails, such as
with --without-default-devices:

    $ ./configure --without-default-devices
    $ make

    [281/283] Linking target qemu-system-ppc64
    FAILED: qemu-system-ppc64
    cc -m64 @qemu-system-ppc64.rsp
    /usr/bin/ld: libqemu-ppc64-softmmu.a.p/target_ppc_misc_helper.c.o: in function `helper_load_sprd':
    .../target/ppc/misc_helper.c:335:(.text+0xcdc): undefined reference to `pnv_chip_find_core'
    /usr/bin/ld: libqemu-ppc64-softmmu.a.p/target_ppc_misc_helper.c.o: in function `helper_store_sprd':
    .../target/ppc/misc_helper.c:375:(.text+0xdf4): undefined reference to `pnv_chip_find_core'
    collect2: error: ld returned 1 exit status
    ...

This is since target/ppc/misc_helper.c references PowerNV specific
'pnv_chip_find_core' call.

Split the PowerNV specific SPRD code out of the generic PowerPC code, by
moving the SPRD code to pnv.c

Fixes: 9808ce6d5c ("target/ppc: Big-core scratch register fix")
Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Reported-by: Thomas Huth <thuth@redhat.com>
Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
Acked-by: Cédric Le Goater <clg@redhat.com>
Message-ID: <20250820122516.949766-2-adityag@linux.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
6 days ago
..
translate target/ppc: Fix facility interrupt checks for VSX 6 months ago
Kconfig
arch_dump.c include: Rename sysemu/ -> system/ 9 months ago
compat.c include: Rename sysemu/ -> system/ 9 months ago
cpu-models.c qom: Have class_init() take a const data argument 5 months ago
cpu-models.h
cpu-param.h tcg: Remove the TCG_GUEST_DEFAULT_MO definition globally 5 months ago
cpu-qom.h
cpu.c include/exec: Split out watchpoint.h 5 months ago
cpu.h hw/ppc: Fix build error with CONFIG_POWERNV disabled 6 days ago
cpu_init.c add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
cpu_init.h
dfp_helper.c
excp_helper.c include: Remove 'exec/exec-all.h' 4 months ago
fpu_helper.c include: Remove 'exec/exec-all.h' 4 months ago
gdbstub.c
helper.h ppc: Enable 2nd DAWR support on Power10 PowerNV machine 6 months ago
helper_regs.c accel/tcg: Move cpu_get_tb_cpu_state to TCGCPUOps 4 months ago
helper_regs.h codebase: prepare to remove cpu.h from exec/exec-all.h 5 months ago
insn32.decode
insn64.decode
int_helper.c
internal.h accel/tcg: Move cpu_get_tb_cpu_state to TCGCPUOps 4 months ago
kvm.c target/ppc/kvm: Avoid using alloca() 6 days ago
kvm_ppc.h cleanup: Drop pointless return at end of function 5 months ago
machine.c include: Remove 'exec/exec-all.h' 4 months ago
mem_helper.c accel/tcg: Split out accel/tcg/helper-retaddr.h 4 months ago
meson.build target/ppc: Move TCG specific exception handlers to tcg-excp_helper.c 6 months ago
misc_helper.c hw/ppc: Fix build error with CONFIG_POWERNV disabled 6 days ago
mmu-book3s-v3.c exec/cpu-all: remove system/memory include 5 months ago
mmu-book3s-v3.h
mmu-booke.c
mmu-booke.h
mmu-books.h
mmu-hash32.c include: Remove 'exec/exec-all.h' 4 months ago
mmu-hash32.h exec/cpu-all: remove system/memory include 5 months ago
mmu-hash64.c include: Remove 'exec/exec-all.h' 4 months ago
mmu-hash64.h qemu: Declare all load/store helper in 'qemu/bswap.h' 2 months ago
mmu-radix64.c include: Remove 'exec/exec-all.h' 4 months ago
mmu-radix64.h
mmu_common.c include: Remove 'exec/exec-all.h' 4 months ago
mmu_helper.c include: Remove 'exec/exec-all.h' 4 months ago
power8-pmu-regs.c.inc
power8-pmu.c include: Remove 'exec/exec-all.h' 4 months ago
power8-pmu.h
ppc-qmp-cmds.c qapi: make most CPU commands unconditionally available 3 months ago
spr_common.h ppc: Enable 2nd DAWR support on Power10 PowerNV machine 6 months ago
tcg-excp_helper.c include: Remove 'exec/exec-all.h' 4 months ago
tcg-stub.c
timebase_helper.c include: Remove 'exec/exec-all.h' 4 months ago
trace-events
trace.h
translate.c include: Remove 'exec/exec-all.h' 4 months ago
user_only_helper.c include: Remove 'exec/exec-all.h' 4 months ago