mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-09-28 10:55:27 +00:00
dbdma: skip transfer commands with reqCount=0.
This commit is contained in:
parent
524daa45a5
commit
dcdfaabedf
@ -81,11 +81,14 @@ uint8_t DMAChannel::interpret_cmd() {
|
|||||||
LOG_F(ERROR, "%s: Key > 0 not implemented", this->get_name().c_str());
|
LOG_F(ERROR, "%s: Key > 0 not implemented", this->get_name().c_str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
this->queue_len = cmd_struct.req_count;
|
||||||
|
if (this->queue_len) {
|
||||||
res = mmu_map_dma_mem(cmd_struct.address, cmd_struct.req_count, false);
|
res = mmu_map_dma_mem(cmd_struct.address, cmd_struct.req_count, false);
|
||||||
this->queue_data = res.host_va;
|
this->queue_data = res.host_va;
|
||||||
this->queue_len = cmd_struct.req_count;
|
|
||||||
this->res_count = 0;
|
this->res_count = 0;
|
||||||
this->cmd_in_progress = true;
|
this->cmd_in_progress = true;
|
||||||
|
} else
|
||||||
|
this->finish_cmd();
|
||||||
break;
|
break;
|
||||||
case DBDMA_Cmd::STORE_QUAD:
|
case DBDMA_Cmd::STORE_QUAD:
|
||||||
if ((cmd_struct.cmd_key & 7) != 6)
|
if ((cmd_struct.cmd_key & 7) != 6)
|
||||||
|
Loading…
Reference in New Issue
Block a user