summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authormagumagu9 <magumagu9@gmail.com>2009-02-14 00:58:18 +0000
committermagumagu9 <magumagu9@gmail.com>2009-02-14 00:58:18 +0000
commit39b7fe10f73be3690fa419f4669f40ff178f6492 (patch)
tree296c02f040d6378c83d1d0db16a8ec0bdfe329c4 /Source
parentacb3d1b23d54f9a1065008ba782629e1c3273863 (diff)
JitIL: make psq_lu work correctly. Fixes, among other things,
the graphics in Metroid Prime. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2234 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Src/PowerPC/Jit64IL/Jit_LoadStorePaired.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_LoadStorePaired.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_LoadStorePaired.cpp
index 9d6b37cd54..79dc624e70 100644
--- a/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_LoadStorePaired.cpp
+++ b/Source/Core/Core/Src/PowerPC/Jit64IL/Jit_LoadStorePaired.cpp
@@ -65,6 +65,8 @@ void Jit64::psq_l(UGeckoInstruction inst)
IREmitter::InstLoc addr = ibuild.EmitIntConst(inst.SIMM_12), val;
if (inst.RA)
addr = ibuild.EmitAdd(addr, ibuild.EmitLoadGReg(inst.RA));
+ if (inst.OPCD == 57)
+ ibuild.EmitStoreGReg(addr, inst.RA);
val = ibuild.EmitLoadPaired(addr, inst.I);
val = ibuild.EmitExpandPackedToMReg(val);
ibuild.EmitStoreFReg(val, inst.RD);