Core: Fix bug in SDC1

This commit is contained in:
zilmar 2022-05-20 10:32:15 +09:30
parent d25314c93d
commit f95c0f7ef1
2 changed files with 3 additions and 3 deletions

View File

@ -308,7 +308,7 @@ bool CMipsMemoryVM::MemoryValue8(uint32_t VAddr, uint8_t & Value)
return true;
}
bool CMipsMemoryVM::MemoryValue16(uint32_t VAddr, uint16_t& Value)
bool CMipsMemoryVM::MemoryValue16(uint32_t VAddr, uint16_t & Value)
{
uint8_t * ptr = MemoryPtr(VAddr ^ 2, 2, true);
if (ptr == nullptr)
@ -319,7 +319,7 @@ bool CMipsMemoryVM::MemoryValue16(uint32_t VAddr, uint16_t& Value)
return true;
}
bool CMipsMemoryVM::MemoryValue32(uint32_t VAddr, uint32_t& Value)
bool CMipsMemoryVM::MemoryValue32(uint32_t VAddr, uint32_t & Value)
{
uint8_t * ptr = MemoryPtr(VAddr, 4, true);
if (ptr == nullptr)

View File

@ -4290,7 +4290,7 @@ void CX86RecompilerOps::SDC1()
return;
}
PreWriteInstruction();
x86Reg AddrReg = BaseOffsetAddress(true);
x86Reg AddrReg = BaseOffsetAddress(false);
TestWriteBreakpoint(AddrReg, (void *)x86TestWriteBreakpoint64, "x86TestWriteBreakpoint64");
x86Reg TempReg2 = Map_TempReg(x86_Any, -1, false);
x86Reg TempReg3 = Map_TempReg(x86_Any, -1, false);