diff options
Diffstat (limited to 'target-alpha/mem_helper.c')
-rw-r--r-- | target-alpha/mem_helper.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/target-alpha/mem_helper.c b/target-alpha/mem_helper.c index fc4f57a644..7b5e30ddb7 100644 --- a/target-alpha/mem_helper.c +++ b/target-alpha/mem_helper.c @@ -128,7 +128,14 @@ void alpha_cpu_unassigned_access(CPUState *cs, hwaddr addr, env->trap_arg0 = addr; env->trap_arg1 = is_write ? 1 : 0; - dynamic_excp(env, 0, EXCP_MCHK, 0); + cs->exception_index = EXCP_MCHK; + env->error_code = 0; + + /* ??? We should cpu_restore_state to the faulting insn, but this hook + does not have access to the retaddr value from the orignal helper. + It's all moot until the QEMU PALcode grows an MCHK handler. */ + + cpu_loop_exit(cs); } /* try to fill the TLB and return an exception if error. If retaddr is |