]> Git Repo - qemu.git/commitdiff
target/arm: Set PSTATE.TCO on exception entry
authorRichard Henderson <[email protected]>
Fri, 26 Jun 2020 03:31:38 +0000 (20:31 -0700)
committerPeter Maydell <[email protected]>
Fri, 26 Jun 2020 13:31:12 +0000 (14:31 +0100)
D1.10 specifies that exception handlers begin with tag checks overridden.

Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Message-id: 20200626033144[email protected]
Signed-off-by: Peter Maydell <[email protected]>
target/arm/helper.c

index 23cf44fcf42a445c222172a588ccf3243be1c435..d220612a201e0bf532dd74df9f9cb00bcfb4026b 100644 (file)
@@ -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;
This page took 0.033937 seconds and 4 git commands to generate.