From e753455abbecaf262ff9e560b0cf73d3e35e285c Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 5 Aug 2021 10:57:41 +0200 Subject: [PATCH] JitArm64: Fix W8 slowmem store Regression from 12629be. --- Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp index 51fa36b7b0..f6ea186e93 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp @@ -197,6 +197,8 @@ void JitArm64::EmitBackpatchRoutine(u32 flags, bool fastmem, bool do_farcode, AR } else if (flags & BackPatchInfo::FLAG_STORE) { + MOV(ARM64Reg::W0, RS); + const bool reverse = (flags & BackPatchInfo::FLAG_REVERSE) != 0; if (flags & BackPatchInfo::FLAG_SIZE_32) @@ -206,7 +208,6 @@ void JitArm64::EmitBackpatchRoutine(u32 flags, bool fastmem, bool do_farcode, AR else MOVP2R(ARM64Reg::X8, &PowerPC::Write_U8); - MOV(ARM64Reg::W0, RS); BLR(ARM64Reg::X8); } else if (flags & BackPatchInfo::FLAG_ZERO_256)