From 9d8f4d5cfaa4b7bf50a34e92ca331be51f880601 Mon Sep 17 00:00:00 2001 From: Eladash Date: Mon, 22 Aug 2022 17:48:45 +0300 Subject: [PATCH] Bugfix after #12523 --- rpcs3/Emu/Cell/SPUThread.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index cdfea66285..e1da9a04ae 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -2821,8 +2821,13 @@ bool spu_thread::do_putllc(const spu_mfc_cmd& args) if (cmp_rdata(to_write, rdata)) { // Writeback of unchanged data. Only check memory change - raddr = 0; // Disable notification - return cmp_rdata(rdata, vm::_ref(addr)) && res.compare_and_swap_test(rtime, rtime + 128); + if (cmp_rdata(rdata, vm::_ref(addr)) && res.compare_and_swap_test(rtime, rtime + 128)) + { + raddr = 0; // Disable notification + return true; + } + + return false; } auto [_oldd, _ok] = res.fetch_op([&](u64& r)