x86jit: Fix a bug in branch continuing.

When we predict it won't take a likely delay slot, we'd lose our register
allocation state.
This commit is contained in:
Unknown W. Brackets committed 2014-10-12 12:51:47 -07:00
1 parent 2f598e8f38
commit 6fae78cd3f
1 file changed
+5
+5
View File
@@ -189,7 +189,12 @@ void Jit::CompBranchExits(CCFlags cc, u32 targetAddr, u32 notTakenAddr, bool del
if (predictTakeBranch)
GetStateAndFlushAll(state);
else
{
// We need to get the state BEFORE the delay slot is compiled.
gpr.GetState(state.gpr);
fpr.GetState(state.fpr);
CompileDelaySlot(DELAYSLOT_FLUSH);
}
}
if (predictTakeBranch)