Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10275 from AdmiralCurtiss/twX-5-byte-jmp
Jit64: Use farcode for exception exit in twX.
  • Loading branch information
JMC47 committed Dec 18, 2021
2 parents 08d907d + 4856013 commit d8e347c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
Expand Up @@ -2559,9 +2559,11 @@ void Jit64::twX(UGeckoInstruction inst)
fixups.push_back(f);
}
}
FixupBranch dont_trap = J();

if (!fixups.empty())
{
SwitchToFarCode();

RCForkGuard gpr_guard = gpr.Fork();
RCForkGuard fpr_guard = fpr.Fork();

Expand All @@ -2577,9 +2579,9 @@ void Jit64::twX(UGeckoInstruction inst)
fpr.Flush();

WriteExceptionExit();
}

SetJumpTarget(dont_trap);
SwitchToNearCode();
}

if (!analyzer.HasOption(PPCAnalyst::PPCAnalyzer::OPTION_CONDITIONAL_CONTINUE))
{
Expand Down

0 comments on commit d8e347c

Please sign in to comment.