CPU/NewRec/x64: Fix data corruption on lwl/lwr with PGXP

This commit is contained in:
Stenzek 2024-08-23 14:33:37 +10:00
parent ccd7ba9acf
commit 3578572aa1
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -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);