target/arm: Fix PAuth keys access checks for disabled SEL2
commit07b034ea828eb089de1a88e0043a8f3065f2d205
authorFlorian Lugou <florian.lugou@provenrun.com>
Tue, 17 May 2022 14:52:42 +0000 (17 16:52 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 19 May 2022 15:19:03 +0000 (19 16:19 +0100)
tree338643d52a49a90eddf4af0a2e7c7d2d1b16f876
parent9598c1bb39b2d4f0d3a55072cc70251c452132cd
target/arm: Fix PAuth keys access checks for disabled SEL2

As per the description of the HCR_EL2.APK field in the ARMv8 ARM,
Pointer Authentication keys accesses should only be trapped to Secure
EL2 if it is enabled.

Signed-off-by: Florian Lugou <florian.lugou@provenrun.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220517145242.1215271-1-florian.lugou@provenrun.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c