microblaze: Restore env when raising unmapped bus access.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
stable-0.12
Edgar E. Iglesias 2009-11-12 02:14:45 +01:00
parent 4898427ec8
commit 95b279de95
1 changed files with 2 additions and 0 deletions

View File

@ -249,6 +249,7 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
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)) {
env = saved_env;
return;
}
@ -264,4 +265,5 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
helper_raise_exception(EXCP_HW_EXCP);
}
}
env = saved_env;
}