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
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>
5 days ago
..
alpha add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
arm * hw/i386: split isapc from PCI boards 1 week ago
avr add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
hexagon accel/tcg: Move cpu_get_tb_cpu_state to TCGCPUOps 4 months ago
hppa add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
i386 i386/kvm/vmsr_energy: Plug memory leak on failure to connect socket 7 days ago
loongarch loongarch queue 7 days ago
m68k add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
microblaze add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
mips target/mips: fix TLB huge page check to use 64-bit shift 5 days ago
openrisc add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
ppc hw/ppc: Fix build error with CONFIG_POWERNV disabled 5 days ago
riscv target/riscv: Restrict midelegh access to S-mode harts 1 month ago
rx add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
s390x add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
sh4 add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
sparc add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
tricore target: Use cpu_pointer_wrap_uint32 for 32-bit targets 3 months ago
xtensa target/xtensa: replace FSF postal address with licenses URL 2 months ago
Kconfig target/cris: Remove the deprecated CRIS target 12 months ago
meson.build target/cris: Remove the deprecated CRIS target 12 months ago