From 8b3652ef403a7af9a1b4fc200b6f1990941b41e0 Mon Sep 17 00:00:00 2001 From: elad335 <18193363+elad335@users.noreply.github.com> Date: Sun, 27 Oct 2024 14:50:04 +0200 Subject: [PATCH] sys_event_flag_set: Minor improvement --- rpcs3/Emu/Cell/lv2/sys_event_flag.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/Emu/Cell/lv2/sys_event_flag.cpp b/rpcs3/Emu/Cell/lv2/sys_event_flag.cpp index de5e475b06..c5e3ee9781 100644 --- a/rpcs3/Emu/Cell/lv2/sys_event_flag.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_event_flag.cpp @@ -424,6 +424,8 @@ error_code sys_event_flag_set(cpu_thread& cpu, u32 id, u64 bitptn) } } + dependant_mask &= ~bitptn; + auto [new_val, ok] = flag->pattern.fetch_op([&](u64& x) { if ((x ^ pattern) & dependant_mask)