qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-arm] [PATCH v2 17/26] armv7m: mpu background miss is perm fault


From: Michael Davidsaver
Subject: [Qemu-arm] [PATCH v2 17/26] armv7m: mpu background miss is perm fault
Date: Wed, 2 Dec 2015 19:18:44 -0500

Set an appropriate FSR code when an access does
not match any MPU region, including the background/default.
---
 target-arm/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index da99825..e73f7a6 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -7163,7 +7163,7 @@ static bool get_phys_addr_pmsav7(CPUARMState *env, 
uint32_t address,
             if (cpu->pmsav7_dregion &&
                 (is_user || !(regime_sctlr(env, mmu_idx) & SCTLR_BR))) {
                 /* background fault */
-                *fsr = 0;
+                *fsr = 0x00d; /* Permission fault */
 
                 qemu_log_mask(CPU_LOG_MMU, "Miss MPU\n");
                 return true;
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]