From f1f85c5470c67adc5071296c53e69abb0b47b09c Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 30 Jul 2004 11:09:03 -0400 Subject: [PATCH] better debugging of DMA operations dev/ns_gige.cc: use the new PhysicalMemory dma_read and dma_write functions --HG-- extra : convert_revision : 427049d43355f02ac8bdfe2e60c24825dd734006 --- dev/ns_gige.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index ab539c3c6..fe901063c 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -1206,7 +1206,7 @@ NSGigE::rxDmaReadCopy() { assert(rxDmaState == dmaReading); - memcpy(rxDmaData, physmem->dma_addr(rxDmaAddr, rxDmaLen), rxDmaLen); + physmem->dma_read((uint8_t *)rxDmaData, rxDmaAddr, rxDmaLen); rxDmaState = dmaIdle; DPRINTF(EthernetDMA, "rx dma read paddr=%#x len=%d\n", @@ -1258,7 +1258,7 @@ NSGigE::rxDmaWriteCopy() { assert(rxDmaState == dmaWriting); - memcpy(physmem->dma_addr(rxDmaAddr, rxDmaLen), rxDmaData, rxDmaLen); + physmem->dma_write(rxDmaAddr, (uint8_t *)rxDmaData, rxDmaLen); rxDmaState = dmaIdle; DPRINTF(EthernetDMA, "rx dma write paddr=%#x len=%d\n", -- 2.30.2