summaryrefslogtreecommitdiff
path: root/dev/ns_gige.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-07-30 11:09:03 -0400
committerNathan Binkert <binkertn@umich.edu>2004-07-30 11:09:03 -0400
commitf1f85c5470c67adc5071296c53e69abb0b47b09c (patch)
tree5c6883fc609f297dd0ecea672199fbd357959f6e /dev/ns_gige.cc
parent4ad33d3eff5d1b6858a83c03bed4d4cf3891635c (diff)
downloadgem5-f1f85c5470c67adc5071296c53e69abb0b47b09c.tar.xz
better debugging of DMA operations
dev/ns_gige.cc: use the new PhysicalMemory dma_read and dma_write functions --HG-- extra : convert_revision : 427049d43355f02ac8bdfe2e60c24825dd734006
Diffstat (limited to 'dev/ns_gige.cc')
-rw-r--r--dev/ns_gige.cc4
1 files 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",