DMA: Enable block splitting for linked list mode

This commit is contained in:
Connor McLaughlin 2020-03-26 00:13:03 +10:00
parent 88f1edd48d
commit c81efb1142
1 changed files with 7 additions and 1 deletions

View File

@ -317,7 +317,7 @@ void DMA::TransferChannel(Channel channel, TickCount ticks_late)
Log_DebugPrintf("DMA%u: Copying linked list starting at 0x%08X to device", static_cast<u32>(channel),
current_address);
for (;;)
while (cs.request)
{
u32 header;
m_bus->DispatchAccess<MemoryAccessType::Read, MemoryAccessSize::Word>(current_address & ADDRESS_MASK, header);
@ -344,6 +344,12 @@ void DMA::TransferChannel(Channel channel, TickCount ticks_late)
}
cs.base_address = current_address;
if ((current_address & UINT32_C(0x800000)) == 0)
{
// linked list not yet complete
return;
}
}
break;