target/arm: Timer _EL02 registers UNDEF for E2H == 0
commit1e8d14037bff6c235917340177c5f9977c564ec0
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 7 Mar 2024 12:19:01 +0000 (7 12:19 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 7 Mar 2024 12:19:01 +0000 (7 12:19 +0000)
tree27ac6094f28532bd5520a504943e184ab810e08d
parent20b42c331df544a6d889f4bcf4535c0f2f98dbcf
target/arm: Timer _EL02 registers UNDEF for E2H == 0

The timer _EL02 registers should UNDEF for invalid accesses from EL2
or EL3 when HCR_EL2.E2H == 0, not take a cp access trap.  We were
delivering the exception to EL2 with the wrong syndrome.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240301183219.2424889-3-peter.maydell@linaro.org
target/arm/helper.c