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
Vaibhav Jain 049b4ad669 target/ppc: Fix build warnings when building with 'disable-tcg'
Kowshik reported that building qemu with GCC 12.2.1 for 'ppc64-softmmu'
target is failing due to following build warnings:

<snip>
 ../target/ppc/cpu_init.c:7018:13: error: 'ppc_restore_state_to_opc' defined but not used [-Werror=unused-function]
 7018 | static void ppc_restore_state_to_opc(CPUState *cs,
<snip>

Fix this by wrapping these function definitions in 'ifdef CONFIG_TCG' so that
they are only defined if qemu is compiled with '--enable-tcg'

Reported-by: Kowshik Jois B S <kowsjois@linux.ibm.com>
Fixes: 61bd1d2942 ("target/ppc: Convert to tcg_ops restore_state_to_opc")
Fixes: 670f1da374 ("target/ppc: Implement hashst and hashchk")
Fixes: 53ae2aeb94 ("target/ppc: Implement hashstp and hashchkp")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1319
Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Kowshik Jois B S <kowsjois@linux.vnet.ibm.com>
Message-Id: <20221116131743.658708-1-vaibhav@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
3 years ago
..
translate target/ppc: Use gvec to decode XVTSTDC[DS]P 3 years ago
Kconfig
arch_dump.c dump: Replace opaque DumpState pointer with a typed one 3 years ago
compat.c
cpu-models.c target/ppc: Fix MPC8555 and MPC8560 core type to e500v1 3 years ago
cpu-models.h target/ppc: Fix MPC8555 and MPC8560 core type to e500v1 3 years ago
cpu-param.h Normalize header guard symbol definition 3 years ago
cpu-qom.h target/ppc: Fix host PVR matching for KVM 3 years ago
cpu.c target/ppc: introduce ppc_maybe_interrupt 3 years ago
cpu.h target/ppc: Add new PMC HFLAGS 3 years ago
cpu_init.c target/ppc: Fix build warnings when building with 'disable-tcg' 3 years ago
dfp_helper.c target/ppc: Set result to QNaN for DENBCD when VXCVI occurs 3 years ago
excp_helper.c target/ppc: Fix build warnings when building with 'disable-tcg' 3 years ago
fpu_helper.c target/ppc: Moved XSTSTDC[QDS]P to decodetree 3 years ago
gdbstub.c target/ppc: Remove msr_le macro 3 years ago
helper.h target/ppc: Increment PMC5 with inline insns 3 years ago
helper_regs.c target/ppc: Add new PMC HFLAGS 3 years ago
helper_regs.h
insn32.decode target/ppc: Moved XSTSTDC[QDS]P to decodetree 3 years ago
insn64.decode target/ppc: Implemented [pm]xvbf16ger2* 3 years ago
int_helper.c target/ppc: Move VABSDU[BHW] to decodetree and use gvec 3 years ago
internal.h target/ppc: move the p*_interrupt_powersave methods to excp_helper.c 3 years ago
kvm-stub.c
kvm.c kvm: allow target-specific accelerator properties 3 years ago
kvm_ppc.h
machine.c target/ppc: Fix host PVR matching for KVM 3 years ago
mem_helper.c target/ppc: Remove msr_hv macro 3 years ago
meson.build
misc_helper.c target/ppc: always use ppc_set_irq to set env->pending_interrupts 3 years ago
mmu-book3s-v3.c ppc: Check partition and process table alignment 3 years ago
mmu-book3s-v3.h target/ppc: Implement ISA 3.00 tlbie[l] 3 years ago
mmu-books.h
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c target/ppc: Implement slbiag 3 years ago
mmu-hash64.h
mmu-radix64.c target/ppc: Fix regression in Radix MMU 3 years ago
mmu-radix64.h
mmu_common.c target/ppc: Remove msr_dr macro 3 years ago
mmu_helper.c target/ppc: Implement ISA 3.00 tlbie[l] 3 years ago
monitor.c target/ppc: check tb_env != 0 before printing TBU/TBL/DECR 3 years ago
power8-pmu-regs.c.inc target/ppc: fix PMU Group A register read/write exceptions 3 years ago
power8-pmu.c target/ppc: Increment PMC5 with inline insns 3 years ago
power8-pmu.h target/ppc: Increment PMC5 with inline insns 3 years ago
spr_common.h
tcg-stub.c
timebase_helper.c target/ppc: fix exception error code in helper_{load, store}_dcr 3 years ago
trace-events target/ppc: Improve KVM hypercall trace 3 years ago
trace.h
translate.c target/ppc: Increment PMC5 with inline insns 3 years ago
user_only_helper.c