From d1b5652ecc3ee5116b0072ad901562db4e2fa93e Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi <18193363+elad335@users.noreply.github.com> Date: Fri, 11 Oct 2024 20:25:26 +0300 Subject: [PATCH] SPU: Optimize cellSpurs reservations --- rpcs3/Emu/Cell/SPUThread.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index 449aec7afd41..f01fdfb77be1 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -3899,7 +3899,11 @@ bool spu_thread::do_putllc(const spu_mfc_cmd& args) { if (raddr) { - vm::reservation_notifier_notify(addr); + if (raddr != spurs_addr || pc != 0x11e4 || ((static_cast(rdata[0x73]) & (1u << index)) != 0 && (_ref((args.lsa & 0x3ff80) + 0x73) & (1u << index)))) + { + vm::reservation_notifier_notify(addr); + } + raddr = 0; }