From eaf574bfa66a7e067afe71d058c12465ff281293 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 23 Aug 2024 14:33:37 +1000 Subject: [PATCH] CPU/NewRec/x64: Fix data corruption on lwl/lwr with PGXP --- src/core/cpu_newrec_compiler_x64.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/cpu_newrec_compiler_x64.cpp b/src/core/cpu_newrec_compiler_x64.cpp index 88ccf5bca..2bb4f6776 100644 --- a/src/core/cpu_newrec_compiler_x64.cpp +++ b/src/core/cpu_newrec_compiler_x64.cpp @@ -1615,6 +1615,8 @@ void CPU::NewRec::X64Compiler::Compile_lwx(CompileFlags cf, MemoryAccessSize siz if (g_settings.gpu_pgxp_enable) { + Flush(FLUSH_FOR_C_CALL); + DebugAssert(value != RWARG3); cg->mov(RWARG3, value); cg->mov(RWARG2, addr);