Jit_Branch: bcx

This commit is contained in:
MerryMage 2018-10-15 21:01:27 +01:00
parent 256e234949
commit 453417ad8c
1 changed files with 7 additions and 3 deletions

View File

@ -160,9 +160,13 @@ void Jit64::bcx(UGeckoInstruction inst)
else else
destination = js.compilerPC + SignExt16(inst.BD << 2); destination = js.compilerPC + SignExt16(inst.BD << 2);
gpr.Flush(RegCache::FlushMode::MaintainState); {
fpr.Flush(RegCache::FlushMode::MaintainState); RCForkGuard gpr_guard = gpr.Fork();
WriteExit(destination, inst.LK, js.compilerPC + 4); RCForkGuard fpr_guard = fpr.Fork();
gpr.Flush();
fpr.Flush();
WriteExit(destination, inst.LK, js.compilerPC + 4);
}
if ((inst.BO & BO_DONT_CHECK_CONDITION) == 0) if ((inst.BO & BO_DONT_CHECK_CONDITION) == 0)
SetJumpTarget(pConditionDontBranch); SetJumpTarget(pConditionDontBranch);