Increase DIMAR by DILENGTH after a command

This commit is contained in:
Pokechu22 2019-10-26 15:53:29 -07:00
parent d3aad1d6d5
commit 3110599559

View File

@ -1106,6 +1106,9 @@ void FinishExecutingCommandCallback(u64 userdata, s64 cycles_late)
void FinishExecutingCommand(ReplyType reply_type, DIInterruptType interrupt_type, s64 cycles_late,
const std::vector<u8>& data)
{
s_DIMAR += s_DILENGTH;
s_DILENGTH = 0;
switch (reply_type)
{
case ReplyType::NoReply:
@ -1118,7 +1121,6 @@ void FinishExecutingCommand(ReplyType reply_type, DIInterruptType interrupt_type
if (s_DICR.TSTART)
{
s_DICR.TSTART = 0;
s_DILENGTH = 0;
GenerateDIInterrupt(interrupt_type);
}
break;