[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v16 52/99] target/arm: rename handle_semihosting to tcg_handle_se
From: |
Alex Bennée |
Subject: |
[PATCH v16 52/99] target/arm: rename handle_semihosting to tcg_handle_semihosting |
Date: |
Fri, 4 Jun 2021 16:52:25 +0100 |
From: Claudio Fontana <cfontana@suse.de>
make it clearer from the name that this is a tcg-only function.
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
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(-)
diff --git a/target/arm/tcg/tcg-cpu.h b/target/arm/tcg/tcg-cpu.h
index 0ee8ba073b..7e62f92d16 100644
--- a/target/arm/tcg/tcg-cpu.h
+++ b/target/arm/tcg/tcg-cpu.h
@@ -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 */
diff --git a/target/arm/cpu-sysemu.c b/target/arm/cpu-sysemu.c
index 0e872b2e55..7569241339 100644
--- a/target/arm/cpu-sysemu.c
+++ b/target/arm/cpu-sysemu.c
@@ -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 */
diff --git a/target/arm/tcg/sysemu/tcg-cpu.c b/target/arm/tcg/sysemu/tcg-cpu.c
index af9d3905d7..2c395f47e7 100644
--- a/target/arm/tcg/sysemu/tcg-cpu.c
+++ b/target/arm/tcg/sysemu/tcg-cpu.c
@@ -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;
--
2.20.1
[PATCH v16 52/99] target/arm: rename handle_semihosting to tcg_handle_semihosting,
Alex Bennée <=
[PATCH v16 94/99] target/arm: move CONFIG_V7M out of default-devices, Alex Bennée, 2021/06/04
[PATCH v16 26/99] target/arm: move physical address translation to cpu-mmu, Alex Bennée, 2021/06/04
[PATCH v16 70/99] target/arm: move TCG gt timer creation code in tcg/, Alex Bennée, 2021/06/04
[PATCH v16 32/99] target/arm: move cpsr_read, cpsr_write to cpu_common, Alex Bennée, 2021/06/04
[PATCH v16 18/99] target/arm: tcg: add sysemu and user subdirs, Alex Bennée, 2021/06/04
[PATCH v16 64/99] tests: do not run test-hmp on all machines for ARM KVM-only, Alex Bennée, 2021/06/04
[PATCH v16 28/99] target/arm: split cpregs from tcg/helper.c, Alex Bennée, 2021/06/04