mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 16:50:58 +00:00
arm: Remove unnecessary check on cpu->pmsav7_dregion
Now that we enforce both: * pmsav7_dregion == 0 implies has_mpu == false * PMSA with has_mpu == false means SCTLR.M cannot be set we can remove a check on pmsav7_dregion from get_phys_addr_pmsav7(), because we can only reach this code path if the MPU is enabled (and so region_translation_disabled() returned false). Backports commit e9235c6983b261e04e897e8ff900b2b7a391e644 from qemu
This commit is contained in:
parent
349227bb05
commit
bfe99e9a0b
|
@ -7377,8 +7377,7 @@ static bool get_phys_addr_pmsav7(CPUARMState *env, uint32_t address,
|
|||
}
|
||||
|
||||
if (n == -1) { /* no hits */
|
||||
if (cpu->pmsav7_dregion &&
|
||||
(is_user || !(regime_sctlr(env, mmu_idx) & SCTLR_BR))) {
|
||||
if (is_user || !(regime_sctlr(env, mmu_idx) & SCTLR_BR)) {
|
||||
/* background fault */
|
||||
*fsr = 0;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue