DMA: Properly handle infinite linked lists, add cycle stealing

Fixes Tekken 2, Hot Wheels Turbo Racing, probably others.
This commit is contained in:
Connor McLaughlin
2020-04-29 16:52:15 +10:00
parent 07e8ddcae2
commit 9d1eb321ec
5 changed files with 118 additions and 26 deletions

View File

@ -766,8 +766,10 @@ bool System::SetExpansionROM(const char* filename)
void System::StallCPU(TickCount ticks)
{
m_cpu->AddPendingTicks(ticks);
#if 0
if (m_cpu->GetPendingTicks() >= m_cpu->GetDowncount() && !m_running_events)
RunEvents();
#endif
}
Controller* System::GetController(u32 slot) const