OSDN Git Service

semihosting/arm-compat-semi: unify GET/SET_ARG helpers
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 23 Mar 2021 16:52:52 +0000 (16:52 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 24 Mar 2021 14:25:07 +0000 (14:25 +0000)
commit3960ca5b3ef6854ef50ef540fe9cf47d94f27704
tree228577f18ecb220b712c995ef23d6079421e6e22
parent3539d84df15a29bb72d6d1eb2c39908681056d51
semihosting/arm-compat-semi: unify GET/SET_ARG helpers

>>>From the semihosting point of view what we want to know is the current
mode of the processor. Unify this into a single helper and allow us to
use the same GET/SET_ARG helpers for the rest of the code. Having the
helper will also be useful later.

Note: we aren't currently testing riscv32 due to missing toolchain for
check-tcg tests.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
Message-Id: <20210323165308.15244-7-alex.bennee@linaro.org>
semihosting/arm-compat-semi.c