mirror of https://github.com/xemu-project/xemu.git
Sparc32: clear exception_index with -1 value
See also 821b19fe92
.
Spotted by Artyom Tarasenko and Igor Kovalenko.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
0e8c9214ba
commit
95372a393d
|
@ -3563,7 +3563,7 @@ void do_interrupt(CPUState *env)
|
||||||
env->tbr = (env->tbr & TBR_BASE_MASK) | (intno << 4);
|
env->tbr = (env->tbr & TBR_BASE_MASK) | (intno << 4);
|
||||||
env->pc = env->tbr;
|
env->pc = env->tbr;
|
||||||
env->npc = env->pc + 4;
|
env->npc = env->pc + 4;
|
||||||
env->exception_index = 0;
|
env->exception_index = -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue