mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
vm: Attempt to not remove cpu_flag::wait flag during access violation
This commit is contained in:
parent
b0e2c959eb
commit
ddba30988b
4 changed files with 10 additions and 5 deletions
|
|
@ -380,7 +380,7 @@ namespace vm
|
|||
}
|
||||
}
|
||||
|
||||
void temporary_unlock(cpu_thread& cpu) noexcept
|
||||
bool temporary_unlock(cpu_thread& cpu) noexcept
|
||||
{
|
||||
bs_t<cpu_flag> add_state = cpu_flag::wait;
|
||||
|
||||
|
|
@ -392,7 +392,10 @@ namespace vm
|
|||
if (add_state - cpu.state)
|
||||
{
|
||||
cpu.state += add_state;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void temporary_unlock() noexcept
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue