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>
2 years ago
..
translate target/ppc: Use gvec to decode XVTSTDC[DS]P 2 years ago
Kconfig meson: Introduce target-specific Kconfig 3 years ago
arch_dump.c dump: Replace opaque DumpState pointer with a typed one 2 years ago
compat.c powerpc tcg: Fix Lesser GPL version number 4 years ago
cpu-models.c target/ppc: Fix MPC8555 and MPC8560 core type to e500v1 2 years ago
cpu-models.h target/ppc: Fix MPC8555 and MPC8560 core type to e500v1 2 years ago
cpu-param.h Normalize header guard symbol definition 3 years ago
cpu-qom.h target/ppc: Fix host PVR matching for KVM 2 years ago
cpu.c target/ppc: introduce ppc_maybe_interrupt 2 years ago
cpu.h target/ppc: Add new PMC HFLAGS 2 years ago
cpu_init.c target/ppc: Fix build warnings when building with 'disable-tcg' 2 years ago
dfp_helper.c target/ppc: Set result to QNaN for DENBCD when VXCVI occurs 2 years ago
excp_helper.c target/ppc: Fix build warnings when building with 'disable-tcg' 2 years ago
fpu_helper.c target/ppc: Moved XSTSTDC[QDS]P to decodetree 2 years ago
gdbstub.c target/ppc: Remove msr_le macro 3 years ago
helper.h target/ppc: Increment PMC5 with inline insns 2 years ago
helper_regs.c target/ppc: Add new PMC HFLAGS 2 years ago
helper_regs.h target/ppc: Remove env->immu_idx and env->dmmu_idx 4 years ago
insn32.decode target/ppc: Moved XSTSTDC[QDS]P to decodetree 2 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 2 years ago
internal.h target/ppc: move the p*_interrupt_powersave methods to excp_helper.c 2 years ago
kvm-stub.c Include qemu-common.h exactly where needed 6 years ago
kvm.c kvm: allow target-specific accelerator properties 2 years ago
kvm_ppc.h target/ppc: Support for H_RPT_INVALIDATE hcall 3 years ago
machine.c target/ppc: Fix host PVR matching for KVM 2 years ago
mem_helper.c target/ppc: Remove msr_hv macro 3 years ago
meson.build target/ppc: make power8-pmu.c CONFIG_TCG only 3 years ago
misc_helper.c target/ppc: always use ppc_set_irq to set env->pending_interrupts 2 years ago
mmu-book3s-v3.c ppc: Check partition and process table alignment 2 years ago
mmu-book3s-v3.h target/ppc: Implement ISA 3.00 tlbie[l] 2 years ago
mmu-books.h target/ppc: introduce mmu-books.h 3 years ago
mmu-hash32.c target/ppc: Remove PowerPC 601 CPUs 3 years ago
mmu-hash32.h target/ppc: Remove PowerPC 601 CPUs 3 years ago
mmu-hash64.c target/ppc: Implement slbiag 2 years ago
mmu-hash64.h target/ppc: fix Hash64 MMU update of PTE bit R 3 years ago
mmu-radix64.c target/ppc: Fix regression in Radix MMU 2 years ago
mmu-radix64.h target/ppc: Check effective address validity 3 years ago
mmu_common.c target/ppc: Remove msr_dr macro 3 years ago
mmu_helper.c target/ppc: Implement ISA 3.00 tlbie[l] 2 years ago
monitor.c target/ppc: check tb_env != 0 before printing TBU/TBL/DECR 2 years ago
power8-pmu-regs.c.inc target/ppc: fix PMU Group A register read/write exceptions 2 years ago
power8-pmu.c target/ppc: Increment PMC5 with inline insns 2 years ago
power8-pmu.h target/ppc: Increment PMC5 with inline insns 2 years ago
spr_common.h target/ppc: Move common SPR functions out of cpu_init 3 years ago
tcg-stub.c target/ppc: created tcg-stub.c file 4 years ago
timebase_helper.c target/ppc: fix exception error code in helper_{load, store}_dcr 2 years ago
trace-events target/ppc: Improve KVM hypercall trace 3 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
translate.c target/ppc: Increment PMC5 with inline insns 2 years ago
user_only_helper.c target/ppc: Implement ppc_cpu_record_sigsegv 3 years ago