]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Report correct syndrome for UNDEFINED S1E2 AT ops at EL3
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jan 2025 18:22:58 +0000 (18:22 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 24 Feb 2025 21:12:17 +0000 (00:12 +0300)
commit41945c6bbb8744af6b74b2edc1520744fd7c3c53
tree2f77539c69e3b7faf5fe5330dfbb1fbc2c69049e
parent7988e7c6ba18c3cadd0db001d81e0a6536a4ecf3
target/arm: Report correct syndrome for UNDEFINED S1E2 AT ops at EL3

The pseudocode for AT S1E2R and AT S1E2W says that they should be
UNDEFINED if executed at EL3 when EL2 is not enabled. We were
incorrectly using CP_ACCESS_TRAP and reporting the wrong exception
syndrome as a result. Use CP_ACCESS_TRAP_UNCATEGORIZED.

Cc: qemu-stable@nongnu.org
Fixes: 2a47df953202e1 ("target-arm: Wire up AArch64 EL2 and EL3 address translation ops")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250130182309.717346-4-peter.maydell@linaro.org
(cherry picked from commit ccda792945d650bce4609c8dbce8814a220df1bb)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/helper.c