Sparc32: clear exception_index with -1 value
authorBlue Swirl <blauwirbel@gmail.com>
Thu, 7 Jan 2010 20:02:04 +0000 (20:02 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 7 Jan 2010 20:02:04 +0000 (20:02 +0000)
See also 821b19fe923ac49a24cdb4af902584fdd019cee6.

Spotted by Artyom Tarasenko and Igor Kovalenko.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/op_helper.c

index ea14e112f8167512922272b7bf5b9faca608999f..c63de0717b6786a7900721d649bd0af3950919d5 100644 (file)
@@ -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
 
This page took 0.031208 seconds and 4 git commands to generate.