From 905496e9260c8b2f897b09cec8c615e40397c99f Mon Sep 17 00:00:00 2001 From: Nick Renieris Date: Sat, 3 Sep 2022 23:07:18 +0300 Subject: [PATCH] PPU: Fix STVLX Fixes Sly 2 and Sly 3 crash on boot (RSX desync). --- rpcs3/Emu/Cell/PPUInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUInterpreter.cpp b/rpcs3/Emu/Cell/PPUInterpreter.cpp index f665a910d0..391d8988d1 100644 --- a/rpcs3/Emu/Cell/PPUInterpreter.cpp +++ b/rpcs3/Emu/Cell/PPUInterpreter.cpp @@ -5311,7 +5311,7 @@ auto STVLX() { const u64 addr = op.ra ? a + b : b; const u32 tail = u32(addr & 15); - u8* ptr = vm::_ptr(addr & -16); + u8* ptr = vm::_ptr(addr); for (u32 j = 0; j < 16 - tail; j++) ptr[j] = s.u8r[j]; };