summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Henderson2022-03-15 03:12:05 +0100
committerPeter Maydell2022-03-18 11:55:15 +0100
commitc179d3be7bd03edb717c4b953faa285513b6301f (patch)
tree63b2169c9c56648e7da5e08fbe93ab37ed85292c
parenttarget/arm: Fix sve2 ldnt1 and stnt1 (diff)
downloadqemu-c179d3be7bd03edb717c4b953faa285513b6301f.tar.gz
qemu-c179d3be7bd03edb717c4b953faa285513b6301f.tar.xz
qemu-c179d3be7bd03edb717c4b953faa285513b6301f.zip
target/arm: Fix pauth_check_trap vs SEL2
When arm_is_el2_enabled was introduced, we missed updating pauth_check_trap. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/788 Fixes: e6ef0169264b ("target/arm: use arm_is_el2_enabled() where applicable") Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20220315021205.342768-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/pauth_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/pauth_helper.c b/target/arm/pauth_helper.c
index cd6df18150..739aa520dd 100644
--- a/target/arm/pauth_helper.c
+++ b/target/arm/pauth_helper.c
@@ -390,7 +390,7 @@ static void QEMU_NORETURN pauth_trap(CPUARMState *env, int target_el,
static void pauth_check_trap(CPUARMState *env, int el, uintptr_t ra)
{
- if (el < 2 && arm_feature(env, ARM_FEATURE_EL2)) {
+ if (el < 2 && arm_is_el2_enabled(env)) {
uint64_t hcr = arm_hcr_el2_eff(env);
bool trap = !(hcr & HCR_API);
if (el == 0) {