mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
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:
1 parent
2f598e8f38
commit
6fae78cd3f
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user