mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Some freezing fixed
This commit is contained in:
parent
2200e6f4d9
commit
eca7339a67
6 changed files with 38 additions and 20 deletions
|
@ -1882,8 +1882,13 @@ void RSXThread::Task()
|
|||
inc=1;
|
||||
|
||||
u32 put, get;
|
||||
// this code produces only mov + bswap:
|
||||
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))));
|
||||
/*
|
||||
se_t<u32>::func(put, InterlockedCompareExchange((volatile unsigned long*)((u8*)m_ctrl + offsetof(CellGcmControl, put)), 0, 0));
|
||||
se_t<u32>::func(get, InterlockedCompareExchange((volatile unsigned long*)((u8*)m_ctrl + offsetof(CellGcmControl, get)), 0, 0));
|
||||
*/
|
||||
|
||||
if(put == get || !Emu.IsRunning())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue