mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
vm.cpp/Non-TSX: Fixup potential deadlock
This commit is contained in:
parent
06c9b95e09
commit
9f625de51a
@ -391,14 +391,19 @@ namespace vm
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!get_range_lock_bits(true)) [[likely]]
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (i < 100)
|
if (i < 100)
|
||||||
busy_wait(200);
|
busy_wait(200);
|
||||||
else
|
else
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
|
||||||
if (!get_range_lock_bits(true)) [[likely]]
|
if (cpu_flag::wait - cpu.state)
|
||||||
{
|
{
|
||||||
return;
|
cpu.state += cpu_flag::wait;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user