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
This commit is contained in:
magumagu9 2009-02-14 00:58:18 +00:00
parent acb3d1b23d
commit 39b7fe10f7
1 changed files with 2 additions and 0 deletions

View File

@ -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);