Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #984 from FioraAeterna/fixmergedbclr
JIT: fix branch merging with bclr
  • Loading branch information
dolphin-emu-bot committed Sep 6, 2014
2 parents 674494e + 4ec8f83 commit 387e1e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
Expand Up @@ -393,7 +393,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
if (js.next_inst.OPCD == 16) // bcx
{
if (js.next_inst.LK)
MOV(32, M(&LR), Imm32(js.compilerPC + 4));
MOV(32, M(&LR), Imm32(js.next_compilerPC + 4));

u32 destination;
if (js.next_inst.AA)
Expand All @@ -405,7 +405,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
else if ((js.next_inst.OPCD == 19) && (js.next_inst.SUBOP10 == 528)) // bcctrx
{
if (js.next_inst.LK)
MOV(32, M(&LR), Imm32(js.compilerPC + 4));
MOV(32, M(&LR), Imm32(js.next_compilerPC + 4));
MOV(32, R(EAX), M(&CTR));
AND(32, R(EAX), Imm32(0xFFFFFFFC));
WriteExitDestInEAX();
Expand All @@ -414,7 +414,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
{
MOV(32, R(EAX), M(&LR));
if (js.next_inst.LK)
MOV(32, M(&LR), Imm32(js.compilerPC + 4));
MOV(32, M(&LR), Imm32(js.next_compilerPC + 4));
WriteExitDestInEAX();
}
else
Expand Down Expand Up @@ -492,7 +492,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
if (js.next_inst.OPCD == 16) // bcx
{
if (js.next_inst.LK)
MOV(32, M(&LR), Imm32(js.compilerPC + 4));
MOV(32, M(&LR), Imm32(js.next_compilerPC + 4));

u32 destination;
if (js.next_inst.AA)
Expand All @@ -504,7 +504,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
else if ((js.next_inst.OPCD == 19) && (js.next_inst.SUBOP10 == 528)) // bcctrx
{
if (js.next_inst.LK)
MOV(32, M(&LR), Imm32(js.compilerPC + 4));
MOV(32, M(&LR), Imm32(js.next_compilerPC + 4));

MOV(32, R(EAX), M(&CTR));
AND(32, R(EAX), Imm32(0xFFFFFFFC));
Expand All @@ -516,7 +516,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
AND(32, R(EAX), Imm32(0xFFFFFFFC));

if (js.next_inst.LK)
MOV(32, M(&LR), Imm32(js.compilerPC + 4));
MOV(32, M(&LR), Imm32(js.next_compilerPC + 4));

WriteExitDestInEAX();
}
Expand Down

0 comments on commit 387e1e3

Please sign in to comment.