target/arm: Set PSTATE.TCO on exception entry

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

Backports commit 34669338bd9d66255fceaa84c314251ca49ca8d5 from qemu
This commit is contained in:
Richard Henderson 2021-02-25 22:41:25 -05:00 committed by Lioncash
parent 35d0443056
commit e2456a83a4

View file

@ -9384,6 +9384,9 @@ static void arm_cpu_do_interrupt_aarch64_(CPUState *cs)
break; break;
} }
} }
if (cpu_isar_feature(aa64_mte, cpu)) {
new_mode |= PSTATE_TCO;
}
pstate_write(env, PSTATE_DAIF | new_mode); pstate_write(env, PSTATE_DAIF | new_mode);
env->aarch64 = 1; env->aarch64 = 1;