diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-02-14 07:23:50 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-14 07:23:50 +0000 |
commit | ee0dc6d3937e10d9813ede4710bdcb9a4687d96f (patch) | |
tree | 73fd9386dbbb86683400171711aa1ce43b5a8457 /target-sh4/helper.c | |
parent | b5937f297819bec5bf704dda1df9807fc7f0a766 (diff) | |
download | qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.zip qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.tar.gz qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.tar.bz2 |
Fix incorrect exception_index use
env->exception_index should be cleared with -1, not 0.
See also 821b19fe923ac49a24cdb4af902584fdd019cee6.
Spotted by Igor Kovalenko.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sh4/helper.c')
-rw-r--r-- | target-sh4/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sh4/helper.c b/target-sh4/helper.c index f38e6ab..d2ff669 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -38,7 +38,7 @@ 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; + env->exception_index = -1; switch (rw) { case 0: env->exception_index = 0x0a0; |