From ee0dc6d3937e10d9813ede4710bdcb9a4687d96f Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 14 Feb 2010 07:23:50 +0000 Subject: 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 --- target-sh4/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-sh4/helper.c') diff --git a/target-sh4/helper.c b/target-sh4/helper.c index f38e6abdaf..d2ff6691e0 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; -- cgit v1.2.3