PPU: Fix potential overflow
This commit is contained in:
@@ -92,7 +92,7 @@ void lv2_int_serv::join() const
|
||||
std::bit_cast<u64>(&ppu_thread_exit)
|
||||
});
|
||||
|
||||
thread->cmd_notify++;
|
||||
thread->cmd_notify.store(1);
|
||||
thread->cmd_notify.notify_one();
|
||||
(*thread)();
|
||||
|
||||
|
||||
@@ -581,7 +581,7 @@ error_code sys_ppu_thread_start(ppu_thread& ppu, u32 thread_id)
|
||||
}
|
||||
else
|
||||
{
|
||||
thread->cmd_notify++;
|
||||
thread->cmd_notify.store(1);
|
||||
thread->cmd_notify.notify_one();
|
||||
}
|
||||
|
||||
|
||||
@@ -933,7 +933,7 @@ namespace rsx
|
||||
{ ppu_cmd::sleep, 0 }
|
||||
});
|
||||
|
||||
intr_thread->cmd_notify++;
|
||||
intr_thread->cmd_notify.store(1);
|
||||
intr_thread->cmd_notify.notify_one();
|
||||
}
|
||||
}
|
||||
@@ -3923,7 +3923,7 @@ namespace rsx
|
||||
{ ppu_cmd::sleep, 0 }
|
||||
});
|
||||
|
||||
intr_thread->cmd_notify++;
|
||||
intr_thread->cmd_notify.store(1);
|
||||
intr_thread->cmd_notify.notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace rsx
|
||||
{ ppu_cmd::sleep, 0 }
|
||||
});
|
||||
|
||||
RSX(ctx)->intr_thread->cmd_notify++;
|
||||
RSX(ctx)->intr_thread->cmd_notify.store(1);
|
||||
RSX(ctx)->intr_thread->cmd_notify.notify_one();
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace rsx
|
||||
{ ppu_cmd::sleep, 0 }
|
||||
});
|
||||
|
||||
RSX(ctx)->intr_thread->cmd_notify++;
|
||||
RSX(ctx)->intr_thread->cmd_notify.store(1);
|
||||
RSX(ctx)->intr_thread->cmd_notify.notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user