diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-01-07 20:02:04 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-01-07 20:02:04 +0000 |
commit | 95372a393dee7a9d5446a9d38edd2b57f9f8d46c (patch) | |
tree | fb7bde164e9e8b278f7db61d6c99871824ed9554 /target-sparc/op_helper.c | |
parent | 0e8c9214ba1d4128cf92442cd343bc3733478261 (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>
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r-- | target-sparc/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index ea14e112f8..c63de0717b 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 |