mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06: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). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 1493122030-32191-8-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
06312febfb
commit
e9235c6983
1 changed files with 1 additions and 2 deletions
|
@ -8227,8 +8227,7 @@ static bool get_phys_addr_pmsav7(CPUARMState *env, uint32_t address,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n == -1) { /* no hits */
|
if (n == -1) { /* no hits */
|
||||||
if (cpu->pmsav7_dregion &&
|
if (is_user || !(regime_sctlr(env, mmu_idx) & SCTLR_BR)) {
|
||||||
(is_user || !(regime_sctlr(env, mmu_idx) & SCTLR_BR))) {
|
|
||||||
/* background fault */
|
/* background fault */
|
||||||
*fsr = 0;
|
*fsr = 0;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue