mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
ppu: Improve LWSYNC
Block load<->load reordering as real lwsync.
This commit is contained in:
parent
4f00af6000
commit
4b82006984
4 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue