CPU/Recompiler/AArch64: Fix assertion tripping in debug builds

This commit is contained in:
Connor McLaughlin 2021-07-23 22:59:21 +10:00
parent d9d41de81b
commit e2db78b0ef

View file

@ -1603,11 +1603,11 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi,
switch (size) switch (size)
{ {
case RegSize_8: case RegSize_8:
m_emit->strb(GetHostReg8(value_in_hr), a64::MemOperand(GetFastmemBasePtrReg(), GetHostReg32(address_reg))); m_emit->strb(GetHostReg32(value_in_hr), a64::MemOperand(GetFastmemBasePtrReg(), GetHostReg32(address_reg)));
break; break;
case RegSize_16: case RegSize_16:
m_emit->strh(GetHostReg16(value_in_hr), a64::MemOperand(GetFastmemBasePtrReg(), GetHostReg32(address_reg))); m_emit->strh(GetHostReg32(value_in_hr), a64::MemOperand(GetFastmemBasePtrReg(), GetHostReg32(address_reg)));
break; break;
case RegSize_32: case RegSize_32: