From c3b5bc8ab325bd3aee46ea5c0884c9e6f1636ccb Mon Sep 17 00:00:00 2001 From: ths Date: Sun, 2 Dec 2007 06:31:25 +0000 Subject: SH4: Signal handling for the user space emulator, by Magnus Damm. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3764 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sh4/helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target-sh4') diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 11e2e0f24b..52bef2fca1 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -40,16 +40,16 @@ int cpu_sh4_handle_mmu_fault(CPUState * env, target_ulong address, int rw, int mmu_idx, int is_softmmu) { env->tea = address; + env->exception_index = 0; switch (rw) { case 0: + env->tea = address; env->exception_index = 0x0a0; break; case 1: + env->tea = address; env->exception_index = 0x0c0; break; - case 2: - env->exception_index = 0x0a0; - break; } return 1; } -- cgit v1.2.3