diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2025-07-04 17:56:36 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2025-07-10 09:23:24 +0100 |
commit | c563cd7e61d074f58eef413322144461dd243716 (patch) | |
tree | a5526274f2ec6d62d9c82c4b3a17c81ae88ae25f /scripts/qapi/source.py | |
parent | ae2086426d3784cf66e5b0b7ac823c08e87b4c57 (diff) | |
download | qemu-c563cd7e61d074f58eef413322144461dd243716.zip qemu-c563cd7e61d074f58eef413322144461dd243716.tar.gz qemu-c563cd7e61d074f58eef413322144461dd243716.tar.bz2 |
target/arm: Don't enforce NSE,NS check for EL3->EL3 returns
In the Arm ARM, rule R_TYTWB that defines illegal exception return cases
includes the case:
If FEAT_RME is implemented, then if SCR_EL3.{NSE, NS} is {1, 0}, an
exception return from EL3 to a lower Exception level
Our implementation of this check fails to check that the
return is to a lower exception level, so it will incorrectly fire on
EL3->EL3 exception returns.
Fix the check condition. This requires us to move it further
down in the function to a point where we know the new_el value.
Fixes: 35aa6715ddcd9 ("target/arm: Catch illegal-exception-return from EL3 with bad NSE/NS")
Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3016
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250704165636.261888-1-peter.maydell@linaro.org
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions