Improved vfsDevice.

Minor fixes.
This commit is contained in:
DH 2014-01-19 18:05:27 +02:00
parent ab41540064
commit dc2fd8c39e
8 changed files with 46 additions and 36 deletions

View file

@ -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)