aboutsummaryrefslogtreecommitdiff
path: root/target-microblaze
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2013-03-19 17:34:47 +0100
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2013-03-19 17:34:47 +0100
commitafed26082219b49443193b4ac32d113bbcf967fd (patch)
tree0a16dfeff5b712957b50e36e7c1ffc1b490edfd6 /target-microblaze
parentf7d42093a5e54d48cab62695a374806d4303bd6b (diff)
microblaze: Ignore non-cpu accesses to unmapped areas
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-microblaze')
-rw-r--r--target-microblaze/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c
index 1c62f3c68f..f2cb88b3ed 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;
}