Some bugs fixed

This commit is contained in:
Nekotekina 2014-01-21 03:34:16 +04:00
parent dc2fd8c39e
commit 5f9bc13898
3 changed files with 55 additions and 44 deletions

View file

@ -1452,9 +1452,11 @@ void RSXThread::Task()
{
wxCriticalSectionLocker lock(m_cs_main);
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))));
//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))));
const u32 put = re(m_ctrl->put);
const u32 get = re(m_ctrl->get);
if(put == get || !Emu.IsRunning())
{