mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
attempt at fixing #1037
This commit is contained in:
@ -467,14 +467,14 @@ void Compiler::SaveCPSR(bool flagClean)
|
|||||||
void Compiler::LoadReg(int reg, X64Reg nativeReg)
|
void Compiler::LoadReg(int reg, X64Reg nativeReg)
|
||||||
{
|
{
|
||||||
if (reg != 15)
|
if (reg != 15)
|
||||||
MOV(32, R(nativeReg), MDisp(RCPU, offsetof(ARM, R[reg])));
|
MOV(32, R(nativeReg), MDisp(RCPU, offsetof(ARM, R) + reg*4));
|
||||||
else
|
else
|
||||||
MOV(32, R(nativeReg), Imm32(R15));
|
MOV(32, R(nativeReg), Imm32(R15));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Compiler::SaveReg(int reg, X64Reg nativeReg)
|
void Compiler::SaveReg(int reg, X64Reg nativeReg)
|
||||||
{
|
{
|
||||||
MOV(32, MDisp(RCPU, offsetof(ARM, R[reg])), R(nativeReg));
|
MOV(32, MDisp(RCPU, offsetof(ARM, R) + reg*4), R(nativeReg));
|
||||||
}
|
}
|
||||||
|
|
||||||
// invalidates RSCRATCH and RSCRATCH3
|
// invalidates RSCRATCH and RSCRATCH3
|
||||||
|
Reference in New Issue
Block a user