From: Paolo Bonzini Date: Fri, 29 Aug 2025 08:53:55 +0000 (+0200) Subject: target/ppc: limit cpu_interrupt_exittb to system emulation X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=588ffa75eba30baf75d1ba246c5f917e8716fcaa;p=thirdparty%2Fqemu.git target/ppc: limit cpu_interrupt_exittb to system emulation It is not used by user-mode emulation and is the only caller of cpu_interrupt() in qemu-ppc* binaries. Reviewed-by: Igor Mammedov Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- diff --git a/target/ppc/helper_regs.c b/target/ppc/helper_regs.c index 7e5726871e5..5f217397490 100644 --- a/target/ppc/helper_regs.c +++ b/target/ppc/helper_regs.c @@ -274,6 +274,7 @@ TCGTBCPUState ppc_get_tb_cpu_state(CPUState *cs) return (TCGTBCPUState){ .pc = env->nip, .flags = hflags_current }; } +#ifndef CONFIG_USER_ONLY void cpu_interrupt_exittb(CPUState *cs) { /* @@ -285,6 +286,7 @@ void cpu_interrupt_exittb(CPUState *cs) cpu_interrupt(cs, CPU_INTERRUPT_EXITTB); } } +#endif int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv) {