From e2db78b0ef222c7e342e39d854164fe49a8d3df2 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 23 Jul 2021 22:59:21 +1000 Subject: [PATCH] CPU/Recompiler/AArch64: Fix assertion tripping in debug builds --- src/core/cpu_recompiler_code_generator_aarch64.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/cpu_recompiler_code_generator_aarch64.cpp b/src/core/cpu_recompiler_code_generator_aarch64.cpp index f7ce1b17b..d62e3026b 100644 --- a/src/core/cpu_recompiler_code_generator_aarch64.cpp +++ b/src/core/cpu_recompiler_code_generator_aarch64.cpp @@ -1603,11 +1603,11 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi, switch (size) { 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; 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; case RegSize_32: