@@ -172,8 +172,8 @@ static inline int r14_bank_number(int mode)
void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu);
void arm_translate_init(void);
-bool arm_cpu_has_work(CPUState *cs);
#ifdef CONFIG_TCG
+bool arm_cpu_has_work(CPUState *cs);
void arm_cpu_synchronize_from_tb(CPUState *cs, const TranslationBlock *tb);
#endif /* CONFIG_TCG */
@@ -74,7 +74,6 @@ void arm_cpu_synchronize_from_tb(CPUState *cs,
env->regs[15] = tb->pc;
}
}
-#endif /* CONFIG_TCG */
bool arm_cpu_has_work(CPUState *cs)
{
@@ -86,6 +85,7 @@ bool arm_cpu_has_work(CPUState *cs)
| CPU_INTERRUPT_VFIQ | CPU_INTERRUPT_VIRQ
| CPU_INTERRUPT_EXITTB);
}
+#endif /* CONFIG_TCG */
void arm_register_pre_el_change_hook(ARMCPU *cpu, ARMELChangeHookFn *hook,
void *opaque)
arm_cpu_has_work() is only used from TCG. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- target/arm/internals.h | 2 +- target/arm/cpu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)