Fix incorrect exception_index use

env->exception_index should be cleared with -1, not 0.

See also 821b19fe92.

Spotted by Igor Kovalenko.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2010-02-14 07:23:50 +00:00
parent b5937f2978
commit ee0dc6d393
3 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ int cpu_sh4_handle_mmu_fault(CPUState * env, target_ulong address, int rw,
int mmu_idx, int is_softmmu)
{
env->tea = address;
env->exception_index = 0;
env->exception_index = -1;
switch (rw) {
case 0:
env->exception_index = 0x0a0;