target/arm: fix handling of HLT semihosting in system mode
commit9788d4c007cbde7cda1b7a577b8b836335eb2b73
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 5 Jan 2023 11:43:04 +0000 (5 11:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Jan 2023 11:53:14 +0000 (5 11:53 +0000)
tree7c13ffed7ee65487e9f1247343e1c3c46bb5f39d
parent5f536d01d1141a56f5057b62c82fa94826d367f0
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>
target/arm/translate.c