mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-08 22:25:27 +00:00
target/arm: Remove redundant mmu_idx lookup
We already have the full ARMMMUIdx as computed from the function parameter. For the purpose of regime_has_2_ranges, we can ignore any difference between AccType_Normal and AccType_Unpriv, which would be the only difference between the passed mmu_idx and arm_mmu_idx_el. Backports 4aedfc0f633fd06dd2a5dc8ffa93f4c56117e37f
This commit is contained in:
parent
d350644817
commit
511636a3f4
|
@ -538,8 +538,7 @@ static void mte_check_fail(CPUARMState *env, uint32_t desc,
|
|||
|
||||
case 2:
|
||||
/* Tag check fail causes asynchronous flag set. */
|
||||
mmu_idx = arm_mmu_idx_el(env, el);
|
||||
if (regime_has_2_ranges(mmu_idx)) {
|
||||
if (regime_has_2_ranges(arm_mmu_idx)) {
|
||||
select = extract64(dirty_ptr, 55, 1);
|
||||
} else {
|
||||
select = 0;
|
||||
|
|
Loading…
Reference in a new issue