mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
Merge pull request #1773 from FioraAeterna/fixcarryearlyblockend
JIT: fix carry optimization on blocks that end early
This commit is contained in:
commit
5d55bceeb3
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ void Jit64::FinalizeCarry(CCFlags cond)
|
||||||
if (js.op->wantsCA)
|
if (js.op->wantsCA)
|
||||||
{
|
{
|
||||||
// Be careful: a breakpoint kills flags in between instructions
|
// Be careful: a breakpoint kills flags in between instructions
|
||||||
if (js.next_op->wantsCAInFlags && !js.next_inst_bp)
|
if (!js.isLastInstruction && js.next_op->wantsCAInFlags && !js.next_inst_bp)
|
||||||
{
|
{
|
||||||
if (cond == CC_C || cond == CC_NC)
|
if (cond == CC_C || cond == CC_NC)
|
||||||
{
|
{
|
||||||
|
@ -86,7 +86,7 @@ void Jit64::FinalizeCarry(bool ca)
|
||||||
js.carryFlagInverted = false;
|
js.carryFlagInverted = false;
|
||||||
if (js.op->wantsCA)
|
if (js.op->wantsCA)
|
||||||
{
|
{
|
||||||
if (js.next_op->wantsCAInFlags)
|
if (!js.isLastInstruction && js.next_op->wantsCAInFlags && !js.next_inst_bp)
|
||||||
{
|
{
|
||||||
if (ca)
|
if (ca)
|
||||||
STC();
|
STC();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue