New RSX Debugger

This commit is contained in:
Eladash 2021-01-22 10:11:54 +02:00 committed by Ivan
parent 67dd6754a6
commit 0652870204
42 changed files with 583 additions and 271 deletions

View file

@ -77,25 +77,20 @@ namespace rsx
u64 start = get_system_time();
while (sema != arg)
{
if (Emu.IsStopped())
return;
// Wait for external pause events
if (rsx->external_interrupt_lock)
if (rsx->is_stopped())
{
rsx->wait_pause();
continue;
return;
}
if (const auto tdr = static_cast<u64>(g_cfg.video.driver_recovery_timeout))
{
if (Emu.IsPaused())
if (rsx->is_paused())
{
const u64 start0 = get_system_time();
while (Emu.IsPaused())
while (rsx->is_paused())
{
std::this_thread::sleep_for(1ms);
rsx->cpu_wait();
}
// Reset
@ -112,8 +107,7 @@ namespace rsx
}
}
rsx->on_semaphore_acquire_wait();
std::this_thread::yield();
rsx->cpu_wait();
}
rsx->fifo_wake_delay();