From 77db8f04b9d00a4f23488111352f1c25b6f1f638 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Mon, 3 Oct 2022 08:48:21 +0300 Subject: [PATCH] Savestates: fix saving in HLE functions --- rpcs3/Emu/Cell/PPUModule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUModule.h b/rpcs3/Emu/Cell/PPUModule.h index 416ab2d0ba..1928b9ae80 100644 --- a/rpcs3/Emu/Cell/PPUModule.h +++ b/rpcs3/Emu/Cell/PPUModule.h @@ -294,7 +294,7 @@ inline RT ppu_execute(ppu_thread& ppu, Args... args) return func(ppu, args...); } -#define BIND_FUNC_WITH_BLR(func) BIND_FUNC(func, ppu.cia = static_cast(ppu.lr) & ~3) +#define BIND_FUNC_WITH_BLR(func) BIND_FUNC(func, if (cpu_flag::again - ppu.state) ppu.cia = static_cast(ppu.lr) & ~3) #define REG_FNID(_module, nid, func) ppu_module_manager::register_static_function<&func>(#_module, ppu_select_name(#func, nid), BIND_FUNC_WITH_BLR(func), ppu_generate_id(nid))