]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Report correct syndrome for UNDEFINED LOR sysregs when NS=0
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jan 2025 18:22:59 +0000 (18:22 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 22 Mar 2025 07:52:51 +0000 (10:52 +0300)
commitd66b584cb10c67361ba8a5c5af4898375358fe5a
treed244b19a4d61b302fac4b679b9fa728b4d9646b9
parent7522dd2a0c3182a446458cce03ca7b11c5068551
target/arm: Report correct syndrome for UNDEFINED LOR sysregs when NS=0

The pseudocode for the accessors for the LOR sysregs says they
are UNDEFINED if SCR_EL3.NS is 0. We were reporting the wrong
syndrome value here; use CP_ACCESS_TRAP_UNCATEGORIZED.

Cc: qemu-stable@nongnu.org
Fixes: 2d7137c10faf ("target/arm: Implement the ARMv8.1-LOR extension")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250130182309.717346-5-peter.maydell@linaro.org
(cherry picked from commit 707d478ed8f2da6f2327e5af780890c1fd9c371a)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/helper.c