提交 afed2608 编写于 作者: E Edgar E. Iglesias

microblaze: Ignore non-cpu accesses to unmapped areas

Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
上级 f7d42093
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册