semihosting: Change common-semi API to be architecture-independent
commit0bb446d8b09332e51e6c22a8e36b9ceda2a1bf4d
authorKeith Packard <keithp@keithp.com>
Fri, 8 Jan 2021 22:42:49 +0000 (8 22:42 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 18 Jan 2021 10:05:06 +0000 (18 10:05 +0000)
tree4427ab6f6ac3b62c375e5d0930a94d28f3c87436
parent56b5170c87ee3e30221eea7425c2fc4f0cc7d4a3
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>
hw/semihosting/arm-compat-semi.c
hw/semihosting/common-semi.h [new file with mode: 0644]
linux-user/aarch64/cpu_loop.c
linux-user/arm/cpu_loop.c
target/arm/cpu.h
target/arm/helper.c
target/arm/m_helper.c