提交 787cfbc4 编写于 作者: B Blue Swirl

Sparc32: improve DMA controller IRQ debugging

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 dca47edd
......@@ -142,6 +142,7 @@ void espdma_memory_read(void *opaque, uint8_t *buf, int len)
DPRINTF("DMA read, direction: %c, addr 0x%8.8x\n",
s->dmaregs[0] & DMA_WRITE_MEM ? 'w': 'r', s->dmaregs[1]);
sparc_iommu_memory_read(s->iommu, s->dmaregs[1], buf, len);
DPRINTF("Raise IRQ\n");
s->dmaregs[0] |= DMA_INTR;
s->dmaregs[1] += len;
}
......@@ -153,6 +154,7 @@ void espdma_memory_write(void *opaque, uint8_t *buf, int len)
DPRINTF("DMA write, direction: %c, addr 0x%8.8x\n",
s->dmaregs[0] & DMA_WRITE_MEM ? 'w': 'r', s->dmaregs[1]);
sparc_iommu_memory_write(s->iommu, s->dmaregs[1], buf, len);
DPRINTF("Raise IRQ\n");
s->dmaregs[0] |= DMA_INTR;
s->dmaregs[1] += len;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册