Changed a JMP that needed to be a far JMP in JITIL.

This commit is contained in:
skidau 2012-05-15 09:32:21 +10:00
parent b27f471488
commit 5a8ad92302
2 changed files with 2 additions and 4 deletions

View File

@ -1388,7 +1388,7 @@ static void DoWriteCode(IRBuilder* ibuild, JitIL* Jit, bool UseProfile, bool Mak
Jit->MOV(32, R(ECX), regLocForInst(RI, getOp2(I))); Jit->MOV(32, R(ECX), regLocForInst(RI, getOp2(I)));
RI.Jit->UnsafeWriteRegToReg(EAX, ECX, 32, 0); RI.Jit->UnsafeWriteRegToReg(EAX, ECX, 32, 0);
} }
FixupBranch exit = Jit->J(); FixupBranch exit = Jit->J(true);
Jit->SetJumpTarget(safe); Jit->SetJumpTarget(safe);
// Safe but slow routine // Safe but slow routine
OpArg value = fregLocForInst(RI, getOp1(I)); OpArg value = fregLocForInst(RI, getOp1(I));

View File

@ -559,9 +559,7 @@ u32 Flatten(u32 address, int *realsize, BlockStats *st, BlockRegStats *gpa,
} }
else else
{ {
// Critical memory exception occurred (game over) // ISI exception or other critical memory exception occurred (game over)
address = LR;
broken_block = true;
break; break;
} }
} }