diff options
author | Keith Packard | 2021-01-08 23:42:49 +0100 |
---|---|---|
committer | Alex Bennée | 2021-01-18 11:05:06 +0100 |
commit | 0bb446d8b09332e51e6c22a8e36b9ceda2a1bf4d (patch) | |
tree | 4427ab6f6ac3b62c375e5d0930a94d28f3c87436 /linux-user/arm | |
parent | semihosting: Move ARM semihosting code to shared directories (diff) | |
download | qemu-0bb446d8b09332e51e6c22a8e36b9ceda2a1bf4d.tar.gz qemu-0bb446d8b09332e51e6c22a8e36b9ceda2a1bf4d.tar.xz qemu-0bb446d8b09332e51e6c22a8e36b9ceda2a1bf4d.zip |
semihosting: Change common-semi API to be architecture-independent
The public API is now defined in
hw/semihosting/common-semi.h. do_common_semihosting takes CPUState *
instead of CPUARMState *. All internal functions have been renamed
common_semi_ instead of arm_semi_ or arm_. Aside from the API change,
there are no functional changes in this patch.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210107170717.2098982-3-keithp@keithp.com>
Message-Id: <20210108224256.2321-14-alex.bennee@linaro.org>
Diffstat (limited to 'linux-user/arm')
-rw-r--r-- | linux-user/arm/cpu_loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c index 3d272b56ef..cadfb7fa43 100644 --- a/linux-user/arm/cpu_loop.c +++ b/linux-user/arm/cpu_loop.c @@ -22,6 +22,7 @@ #include "qemu.h" #include "elf.h" #include "cpu_loop-common.h" +#include "hw/semihosting/common-semi.h" #define get_user_code_u32(x, gaddr, env) \ ({ abi_long __r = get_user_u32((x), (gaddr)); \ @@ -421,7 +422,7 @@ void cpu_loop(CPUARMState *env) } break; case EXCP_SEMIHOST: - env->regs[0] = do_arm_semihosting(env); + env->regs[0] = do_common_semihosting(cs); env->regs[15] += env->thumb ? 2 : 4; break; case EXCP_INTERRUPT: |