vm: Attempt to not remove cpu_flag::wait flag during access violation

This commit is contained in:
Eladash 2022-08-19 12:02:45 +03:00 committed by Ivan
parent b0e2c959eb
commit ddba30988b
4 changed files with 10 additions and 5 deletions

View file

@ -1242,14 +1242,16 @@ bool handle_access_violation(u32 addr, bool is_writing, ucontext_t* context) noe
if (rsx::g_access_violation_handler)
{
bool state_changed = false;
if (cpu)
{
vm::temporary_unlock(*cpu);
state_changed = vm::temporary_unlock(*cpu);
}
bool handled = rsx::g_access_violation_handler(addr, is_writing);
if (cpu && (cpu->state += cpu_flag::temp, cpu->test_stopped()))
if (state_changed && (cpu->state += cpu_flag::temp, cpu->test_stopped()))
{
//
}