From cd91a366137e9efd5eb9f7382be2c2daf74d07b5 Mon Sep 17 00:00:00 2001 From: merry Date: Sat, 2 Apr 2022 19:32:46 +0100 Subject: [PATCH] emit_x64_memory: Fix bug in 16-bit ordered EmitReadMemoryMov --- src/dynarmic/backend/x64/emit_x64_memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynarmic/backend/x64/emit_x64_memory.h b/src/dynarmic/backend/x64/emit_x64_memory.h index c9ce765e..983abb56 100644 --- a/src/dynarmic/backend/x64/emit_x64_memory.h +++ b/src/dynarmic/backend/x64/emit_x64_memory.h @@ -215,7 +215,7 @@ const void* EmitReadMemoryMov(BlockOfCode& code, int value_idx, const Xbyak::Reg break; case 16: code.lock(); - code.xadd(word[addr], Xbyak::Reg32{value_idx}); + code.xadd(word[addr], Xbyak::Reg16{value_idx}); break; case 32: code.lock();