Patchwork [1/1] microblaze: Ignore non-cpu accesses to unmapped areas

login
register
mail settings
Submitter Edgar Iglesias
Date March 19, 2013, 4:56 p.m.
Message ID <1363712168-6562-1-git-send-email-edgar.iglesias@gmail.com>
Download mbox | patch
Permalink /patch/229142/
State New
Headers show

Comments

Edgar Iglesias - March 19, 2013, 4:56 p.m.
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
---
 target-microblaze/op_helper.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c
index 1c62f3c..f2cb88b 100644
--- a/target-microblaze/op_helper.c
+++ b/target-microblaze/op_helper.c
@@ -500,7 +500,7 @@  void cpu_unassigned_access(CPUMBState *env, hwaddr addr,
 {
     qemu_log_mask(CPU_LOG_INT, "Unassigned " TARGET_FMT_plx " wr=%d exe=%d\n",
              addr, is_write, is_exec);
-    if (!(env->sregs[SR_MSR] & MSR_EE)) {
+    if (!env || !(env->sregs[SR_MSR] & MSR_EE)) {
         return;
     }