dbdma: Do interrupt after setting resCount and xferStatus.

This commit is contained in:
joevt 2024-03-20 10:28:15 -07:00 committed by dingusdev
parent 15986a4e4f
commit fc89fec3e6

View File

@ -189,8 +189,6 @@ void DMAChannel::finish_cmd() {
this->ch_stat |= CH_STAT_BT;
}
}
this->update_irq();
}
if (res.is_writable)
@ -206,6 +204,10 @@ void DMAChannel::finish_cmd() {
if (this->cur_cmd < DBDMA_Cmd::STOP && !branch_taken)
this->cmd_ptr += 16;
if (this->cur_cmd < DBDMA_Cmd::STOP) {
this->update_irq();
}
this->cmd_in_progress = false;
}