mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
vm: rewrite reservation bits
Implement classic unique/shared locking concept. Implement vm::reservation_light_op.
This commit is contained in:
parent
d962bb018d
commit
346a1d4433
10 changed files with 356 additions and 170 deletions
|
@ -338,7 +338,7 @@ void cpu_thread::operator()()
|
|||
{
|
||||
thread_ctrl::set_native_priority(-1);
|
||||
}
|
||||
|
||||
|
||||
// force input/output denormals to zero for SPU threads (FTZ/DAZ)
|
||||
_mm_setcsr( _mm_getcsr() | 0x8040 );
|
||||
|
||||
|
@ -653,6 +653,7 @@ cpu_thread::suspend_all::suspend_all(cpu_thread* _this) noexcept
|
|||
|
||||
for_all_cpu([](cpu_thread* cpu)
|
||||
{
|
||||
// Should be atomic
|
||||
if (!(cpu->state & cpu_flag::pause))
|
||||
{
|
||||
cpu->state += cpu_flag::pause;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue