mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
vm: add extern clear_range_locks function
Allows to wait for range locks to clear for specified range. vm::range_lock now monitors specified reservation lock as well.
This commit is contained in:
parent
0da24f21d6
commit
3419d15878
4 changed files with 32 additions and 15 deletions
|
@ -1807,6 +1807,9 @@ static bool ppu_store_reservation(ppu_thread& ppu, u32 addr, u64 reg_value)
|
|||
// Align address: we do not need the lower 7 bits anymore
|
||||
addr &= -128;
|
||||
|
||||
// Wait for range locks to clear
|
||||
vm::clear_range_locks(addr, 128);
|
||||
|
||||
// Cache line data
|
||||
auto& cline_data = vm::_ref<spu_rdata_t>(addr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue