@@ -24,7 +24,7 @@
#ifndef CONFIG_USER_ONLY
/* Do semihosting call and set the appropriate return value. */
-void handle_semihosting(CPUState *cs);
+void tcg_handle_semihosting(CPUState *cs);
#endif /* !CONFIG_USER_ONLY */
@@ -1153,7 +1153,7 @@ void arm_cpu_do_interrupt(CPUState *cs)
* must be handled here.
*/
if (cs->exception_index == EXCP_SEMIHOST) {
- handle_semihosting(cs);
+ tcg_handle_semihosting(cs);
return;
}
#endif /* CONFIG_TCG */
@@ -52,7 +52,7 @@
* We only see semihosting exceptions in TCG only as they are not
* trapped to the hypervisor in KVM.
*/
-void handle_semihosting(CPUState *cs)
+void tcg_handle_semihosting(CPUState *cs)
{
ARMCPU *cpu = ARM_CPU(cs);
CPUARMState *env = &cpu->env;
make it clearer from the name that this is a tcg-only function. Signed-off-by: Claudio Fontana <cfontana@suse.de> --- target/arm/tcg/tcg-cpu.h | 2 +- target/arm/cpu-sysemu.c | 2 +- target/arm/tcg/sysemu/tcg-cpu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)