From 95372a393dee7a9d5446a9d38edd2b57f9f8d46c Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Thu, 7 Jan 2010 20:02:04 +0000 Subject: Sparc32: clear exception_index with -1 value See also 821b19fe923ac49a24cdb4af902584fdd019cee6. Spotted by Artyom Tarasenko and Igor Kovalenko. Signed-off-by: Blue Swirl --- target-sparc/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-sparc') 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 -- cgit v1.2.3