microblaze: Ignore non-cpu accesses to unmapped areas
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 19 Mar 2013 16:34:47 +0000 (17:34 +0100)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 19 Mar 2013 16:34:47 +0000 (17:34 +0100)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-microblaze/op_helper.c

index 1c62f3c68ff5591a55065779be0d5fd127c781c4..f2cb88b3edc072dc04fb8b90bfeade86b48feb3d 100644 (file)
@@ -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;
     }