]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: fix handling of HLT semihosting in system mode
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 5 Jan 2023 11:43:04 +0000 (11:43 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commit305c0f8c54071fd50364c01438f9979af5110c97
tree9b67cf4d3ad75ea9946edc1957bc9e44609effc6
parenta2093dd6fecec34079b4b0d3a7be218cfcd5b69b
target/arm: fix handling of HLT semihosting in system mode

The check semihosting_enabled() wants to know if the guest is
currently in user mode. Unlike the other cases the test was inverted
causing us to block semihosting calls in non-EL0 modes.

Cc: qemu-stable@nongnu.org
Fixes: 19b26317e9 (target/arm: Honour -semihosting-config userspace=on)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 9788d4c007cbde7cda1b7a577b8b836335eb2b73)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/translate.c