summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-01-07 20:02:04 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-01-07 20:02:04 +0000
commit95372a393dee7a9d5446a9d38edd2b57f9f8d46c (patch)
treefb7bde164e9e8b278f7db61d6c99871824ed9554
parent0e8c9214ba1d4128cf92442cd343bc3733478261 (diff)
Sparc32: clear exception_index with -1 value
See also 821b19fe923ac49a24cdb4af902584fdd019cee6. Spotted by Artyom Tarasenko and Igor Kovalenko. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--target-sparc/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index ea14e112f..c63de0717 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -3563,7 +3563,7 @@ void do_interrupt(CPUState *env)
env->tbr = (env->tbr & TBR_BASE_MASK) | (intno << 4);
env->pc = env->tbr;
env->npc = env->pc + 4;
- env->exception_index = 0;
+ env->exception_index = -1;
}
#endif