aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/helper.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 06:31:25 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 06:31:25 +0000
commitc3b5bc8ab325bd3aee46ea5c0884c9e6f1636ccb (patch)
tree67512177265b28092609beb04ff3a51ddd3398d8 /target-sh4/helper.c
parent03aa19762854bc4749fea52d7f2ba7d1077c036f (diff)
downloadqemu-c3b5bc8ab325bd3aee46ea5c0884c9e6f1636ccb.zip
qemu-c3b5bc8ab325bd3aee46ea5c0884c9e6f1636ccb.tar.gz
qemu-c3b5bc8ab325bd3aee46ea5c0884c9e6f1636ccb.tar.bz2
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
Diffstat (limited to 'target-sh4/helper.c')
-rw-r--r--target-sh4/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-sh4/helper.c b/target-sh4/helper.c
index 11e2e0f..52bef2f 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;
}