mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
target/arm: Fix reported EL for mte_check_fail
The reporting in AArch64.TagCheckFail only depends on PSTATE.EL, and not the AccType of the operation. There are two guest visible problems that affect LDTR and STTR because of this: (1) Selecting TCF0 vs TCF1 to decide on reporting, (2) Report "data abort same el" not "data abort lower el". Reported-by: Vincenzo Frascino <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Reviewed-by: Vincenzo Frascino <[email protected]> Tested-by: Vincenzo Frascino <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
This commit is contained in:
1 parent
4aedfc0f63
commit
50244cc76a
1 file changed
+3
-7
@@ -525,14 +525,10 @@ static void mte_check_fail(CPUARMState *env, uint32_t desc,
|
||||
reg_el = regime_el(env, arm_mmu_idx);
|
||||
sctlr = env->cp15.sctlr_el[reg_el];
|
||||
|
||||
switch (arm_mmu_idx) {
|
||||
case ARMMMUIdx_E10_0:
|
||||
case ARMMMUIdx_E20_0:
|
||||
el = 0;
|
||||
el = arm_current_el(env);
|
||||
if (el == 0) {
|
||||
tcf = extract64(sctlr, 38, 2);
|
||||
break;
|
||||
default:
|
||||
el = reg_el;
|
||||
} else {
|
||||
tcf = extract64(sctlr, 40, 2);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user