mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 11:04:28 +01:00
EE JIT: Backup shift on LDR/L if rs==rt
This commit is contained in:
1 parent
dc051541bd
commit
6a8287ea9f
1 file changed
+10
@@ -538,6 +538,11 @@ void recLDL()
|
||||
if (GPR_IS_CONST1(_Rs_))
|
||||
{
|
||||
u32 srcadr = g_cpuConstRegs[_Rs_].UL[0] + _Imm_;
|
||||
|
||||
// If _Rs_ is equal to _Rt_ we need to put the shift in to eax since it won't take the CONST path
|
||||
if (_Rs_ == _Rt_)
|
||||
xMOV(calleeSavedReg1d, srcadr);
|
||||
|
||||
srcadr &= ~0x07;
|
||||
|
||||
t2reg = vtlb_DynGenRead64_Const(64, srcadr, -1);
|
||||
@@ -609,6 +614,11 @@ void recLDR()
|
||||
if (GPR_IS_CONST1(_Rs_))
|
||||
{
|
||||
u32 srcadr = g_cpuConstRegs[_Rs_].UL[0] + _Imm_;
|
||||
|
||||
// If _Rs_ is equal to _Rt_ we need to put the shift in to eax since it won't take the CONST path
|
||||
if(_Rs_ == _Rt_)
|
||||
xMOV(calleeSavedReg1d, srcadr);
|
||||
|
||||
srcadr &= ~0x07;
|
||||
|
||||
t2reg = vtlb_DynGenRead64_Const(64, srcadr, -1);
|
||||
|
||||
Reference in new issue
Block a user