mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
PPU/reservations: send thread notification only if data changed
This commit is contained in:
parent
b6bfde6d64
commit
103b2fe5fd
1 changed files with 9 additions and 9 deletions
|
@ -3481,6 +3481,9 @@ static bool ppu_store_reservation(ppu_thread& ppu, u32 addr, u64 reg_value)
|
|||
{
|
||||
extern atomic_t<u32> liblv2_begin, liblv2_end;
|
||||
|
||||
// Avoid notifications from lwmutex or sys_spinlock
|
||||
if (new_data != old_data && (ppu.cia < liblv2_begin || ppu.cia >= liblv2_end))
|
||||
{
|
||||
const u32 notify = ppu.res_notify;
|
||||
|
||||
if (notify)
|
||||
|
@ -3489,9 +3492,6 @@ static bool ppu_store_reservation(ppu_thread& ppu, u32 addr, u64 reg_value)
|
|||
ppu.res_notify = 0;
|
||||
}
|
||||
|
||||
// Avoid notifications from lwmutex or sys_spinlock
|
||||
if (ppu.cia < liblv2_begin || ppu.cia >= liblv2_end)
|
||||
{
|
||||
if (!notify)
|
||||
{
|
||||
// Try to postpone notification to when PPU is asleep or join notifications on the same address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue