aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op_helper.c
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2010-01-06 17:35:22 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-01-06 17:35:22 +0000
commit821b19fe923ac49a24cdb4af902584fdd019cee6 (patch)
treeac054724fc44dbf26933c7e9efb1fd35de54c6f8 /target-sparc/op_helper.c
parentea3fdd5d8ca8d5055942e42151480ab5611396c7 (diff)
sparc64: clear exception_index with -1 value
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/op_helper.c')
-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 dab2c25a2b..ea14e112f8 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -3468,7 +3468,7 @@ void do_interrupt(CPUState *env)
env->tbr |= ((env->tl > 1) ? 1 << 14 : 0) | (intno << 5);
env->pc = env->tbr;
env->npc = env->pc + 4;
- env->exception_index = 0;
+ env->exception_index = -1;
}
#else
#ifdef DEBUG_PCALL