summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-07-30 11:17:20 -0400
committerNathan Binkert <binkertn@umich.edu>2004-07-30 11:17:20 -0400
commit8f87a57e70f8a676cdd016458a13431e0019475c (patch)
tree983fa2b33b935e5a8c8f5b11415003738b4719d8
parentf1f85c5470c67adc5071296c53e69abb0b47b09c (diff)
downloadgem5-8f87a57e70f8a676cdd016458a13431e0019475c.tar.xz
make all ethernet dma use the new interface
--HG-- extra : convert_revision : 1cab883fac2bffd83cb035ebf28958c15118dfdc
-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 fe901063c..27cda69da 100644
--- a/dev/ns_gige.cc
+++ b/dev/ns_gige.cc
@@ -1678,7 +1678,7 @@ NSGigE::txDmaReadCopy()
{
assert(txDmaState == dmaReading);
- memcpy(txDmaData, physmem->dma_addr(txDmaAddr, txDmaLen), txDmaLen);
+ physmem->dma_read((uint8_t *)txDmaData, txDmaAddr, txDmaLen);
txDmaState = dmaIdle;
DPRINTF(EthernetDMA, "tx dma read paddr=%#x len=%d\n",
@@ -1730,7 +1730,7 @@ NSGigE::txDmaWriteCopy()
{
assert(txDmaState == dmaWriting);
- memcpy(physmem->dma_addr(txDmaAddr, txDmaLen), txDmaData, txDmaLen);
+ physmem->dma_write(txDmaAddr, (uint8_t *)txDmaData, txDmaLen);
txDmaState = dmaIdle;
DPRINTF(EthernetDMA, "tx dma write paddr=%#x len=%d\n",