mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-20 18:17:02 +00:00
dbdma: Do interrupt after setting resCount and xferStatus.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user