Core: Fix order of value in call to CMipsMemoryVM::SD_VAddr32 in recompiler

This commit is contained in:
zilmar 2024-12-12 21:22:32 +10:30
parent 5d64b3d920
commit 473aeba2cf
1 changed files with 2 additions and 2 deletions

View File

@ -10268,13 +10268,13 @@ void CX86RecompilerOps::CompileStoreMemoryValue(asmjit::x86::Gp AddressReg, cons
m_RegWorkingSet.BeforeCallDirect(); m_RegWorkingSet.BeforeCallDirect();
if (!ValueReg.isValid()) if (!ValueReg.isValid())
{ {
m_Assembler.push((uint32_t)(Value & 0xFFFFFFFF));
m_Assembler.push((uint32_t)((Value >> 32) & 0xFFFFFFFF)); m_Assembler.push((uint32_t)((Value >> 32) & 0xFFFFFFFF));
m_Assembler.push((uint32_t)(Value & 0xFFFFFFFF));
} }
else else
{ {
m_Assembler.push(ValueReg);
m_Assembler.push(ValueRegHi); m_Assembler.push(ValueRegHi);
m_Assembler.push(ValueReg);
} }
m_Assembler.push(AddressReg); m_Assembler.push(AddressReg);
m_Assembler.CallThis((uint32_t)&m_MMU, AddressOf(&CMipsMemoryVM::SD_VAddr32), "CMipsMemoryVM::SD_VAddr32", 12); m_Assembler.CallThis((uint32_t)&m_MMU, AddressOf(&CMipsMemoryVM::SD_VAddr32), "CMipsMemoryVM::SD_VAddr32", 12);