projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1f85c5
)
make all ethernet dma use the new interface
author
Nathan Binkert
<binkertn@umich.edu>
Fri, 30 Jul 2004 15:17:20 +0000
(11:17 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Fri, 30 Jul 2004 15:17:20 +0000
(11:17 -0400)
--HG--
extra : convert_revision :
1cab883fac2bffd83cb035ebf28958c15118dfdc
dev/ns_gige.cc
patch
|
blob
|
history
diff --git
a/dev/ns_gige.cc
b/dev/ns_gige.cc
index fe901063cf4758d37bc13fdb593e13a3c96a411c..27cda69da48125dd7819edcfd32d0473dc9dda89 100644
(file)
--- 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",