]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Report correct syndrome for UNDEFINED AT ops with wrong NSE, NS
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jan 2025 18:22:57 +0000 (18:22 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 24 Feb 2025 21:11:58 +0000 (00:11 +0300)
commit7988e7c6ba18c3cadd0db001d81e0a6536a4ecf3
tree4f52e6fc229a1e831a00375c6967cc426b28ccd2
parent4a4426275b0028d1ca76e44c59edba4021eac90c
target/arm: Report correct syndrome for UNDEFINED AT ops with wrong NSE, NS

R_NYXTL says that these AT insns should be UNDEFINED if they
would operate on an EL lower than EL3 and SCR_EL3.{NSE,NS} is
set to the Reserved {1, 0}. We were incorrectly reporting
them with the wrong syndrome; use CP_ACCESS_TRAP_UNCATEGORIZED
so they are reported as UNDEFINED.

Cc: qemu-stable@nongnu.org
Fixes: 1acd00ef1410 ("target/arm/helper: Check SCR_EL3.{NSE, NS} encoding for AT instructions")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250130182309.717346-3-peter.maydell@linaro.org
(cherry picked from commit 1960d9701ef7ed8d24e98def767bbf05d63e6992)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/helper.c