ppu: Improve LWSYNC

Block load<->load reordering as real lwsync.
This commit is contained in:
Eladash 2019-08-09 19:35:42 +03:00 committed by Ivan
parent 4f00af6000
commit 4b82006984
4 changed files with 12 additions and 12 deletions

View file

@ -130,7 +130,7 @@ error_code sys_lwmutex_lock(ppu_thread& ppu, vm::ptr<sys_lwmutex_t> lwmutex, u64
// recursive locking succeeded
lwmutex->recursive_count++;
std::atomic_thread_fence(std::memory_order_release);
std::atomic_thread_fence(std::memory_order_acq_rel);
return CELL_OK;
}
@ -290,7 +290,7 @@ error_code sys_lwmutex_trylock(ppu_thread& ppu, vm::ptr<sys_lwmutex_t> lwmutex)
// recursive locking succeeded
lwmutex->recursive_count++;
std::atomic_thread_fence(std::memory_order_release);
std::atomic_thread_fence(std::memory_order_acq_rel);
return CELL_OK;
}