mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Small changes
This commit is contained in:
parent
6fb1a67a83
commit
93faac5780
6 changed files with 64 additions and 35 deletions
|
|
@ -1452,8 +1452,10 @@ void RSXThread::Task()
|
|||
{
|
||||
wxCriticalSectionLocker lock(m_cs_main);
|
||||
|
||||
const u32 get = re(m_ctrl->get);
|
||||
const u32 put = re(m_ctrl->put);
|
||||
u32 put, get;
|
||||
se_t<u32>::func(put, std::atomic_load((volatile std::atomic<u32>*)((u8*)m_ctrl + offsetof(CellGcmControl, put))));
|
||||
se_t<u32>::func(get, std::atomic_load((volatile std::atomic<u32>*)((u8*)m_ctrl + offsetof(CellGcmControl, get))));
|
||||
|
||||
if(put == get || !Emu.IsRunning())
|
||||
{
|
||||
if(put == get)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue