mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
PPU: Fix potential overflow
This commit is contained in:
parent
700334753d
commit
91b4aaf9e1
4 changed files with 6 additions and 6 deletions
|
@ -92,7 +92,7 @@ void lv2_int_serv::join() const
|
||||||
std::bit_cast<u64>(&ppu_thread_exit)
|
std::bit_cast<u64>(&ppu_thread_exit)
|
||||||
});
|
});
|
||||||
|
|
||||||
thread->cmd_notify++;
|
thread->cmd_notify.store(1);
|
||||||
thread->cmd_notify.notify_one();
|
thread->cmd_notify.notify_one();
|
||||||
(*thread)();
|
(*thread)();
|
||||||
|
|
||||||
|
|
|
@ -581,7 +581,7 @@ error_code sys_ppu_thread_start(ppu_thread& ppu, u32 thread_id)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
thread->cmd_notify++;
|
thread->cmd_notify.store(1);
|
||||||
thread->cmd_notify.notify_one();
|
thread->cmd_notify.notify_one();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -933,7 +933,7 @@ namespace rsx
|
||||||
{ ppu_cmd::sleep, 0 }
|
{ ppu_cmd::sleep, 0 }
|
||||||
});
|
});
|
||||||
|
|
||||||
intr_thread->cmd_notify++;
|
intr_thread->cmd_notify.store(1);
|
||||||
intr_thread->cmd_notify.notify_one();
|
intr_thread->cmd_notify.notify_one();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3923,7 +3923,7 @@ namespace rsx
|
||||||
{ ppu_cmd::sleep, 0 }
|
{ ppu_cmd::sleep, 0 }
|
||||||
});
|
});
|
||||||
|
|
||||||
intr_thread->cmd_notify++;
|
intr_thread->cmd_notify.store(1);
|
||||||
intr_thread->cmd_notify.notify_one();
|
intr_thread->cmd_notify.notify_one();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace rsx
|
||||||
{ ppu_cmd::sleep, 0 }
|
{ 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();
|
RSX(ctx)->intr_thread->cmd_notify.notify_one();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ namespace rsx
|
||||||
{ ppu_cmd::sleep, 0 }
|
{ 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();
|
RSX(ctx)->intr_thread->cmd_notify.notify_one();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue