diff mbox series

[PULL,52/57] target/arm: Set PSTATE.TCO on exception entry

Message ID 20200626151424.30117-53-peter.maydell@linaro.org
State New
Headers show
Series [PULL,01/57] hw/arm/aspeed: Remove extraneous MemoryRegion object owner | expand

Commit Message

Peter Maydell June 26, 2020, 3:14 p.m. UTC
From: Richard Henderson <richard.henderson@linaro.org>

D1.10 specifies that exception handlers begin with tag checks overridden.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200626033144.790098-41-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target/arm/helper.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/target/arm/helper.c b/target/arm/helper.c
index 23cf44fcf42..d220612a201 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -9704,6 +9704,9 @@  static void arm_cpu_do_interrupt_aarch64(CPUState *cs)
             break;
         }
     }
+    if (cpu_isar_feature(aa64_mte, cpu)) {
+        new_mode |= PSTATE_TCO;
+    }
 
     pstate_write(env, PSTATE_DAIF | new_mode);
     env->aarch64 = 1;