summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorAndrew Schultz <alschult@umich.edu>2004-07-09 22:32:27 -0400
committerAndrew Schultz <alschult@umich.edu>2004-07-09 22:32:27 -0400
commit4f4252fa89f31e6bb87fe9153e2ead982aaa7e32 (patch)
treecab71dd2e97593aae731e65517bb7b5978e30bfe /dev
parent539da681563a8b72393cfa4aaed3d5617405de31 (diff)
downloadgem5-4f4252fa89f31e6bb87fe9153e2ead982aaa7e32.tar.xz
Remove second pciToDma translation on current PRD address pointer b/c
second translation (which is superfluous) doesn't work properly when system memory is higher than 128MB --HG-- extra : convert_revision : 9cdf6925689d376953b1aa071bcd1e2f06419202
Diffstat (limited to 'dev')
-rw-r--r--dev/ide_disk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/ide_disk.cc b/dev/ide_disk.cc
index ee21feaea..99724f077 100644
--- a/dev/ide_disk.cc
+++ b/dev/ide_disk.cc
@@ -341,8 +341,8 @@ IdeDisk::dmaPrdReadDone()
curPrd.getByteCount(), (cmdBytesLeft/SectorSize),
curPrd.getEOT(), curSector);
- // make sure the new curPrdAddr is properly translated from PCI to system
- curPrdAddr = pciToDma(curPrdAddr + sizeof(PrdEntry_t));
+ // the prd pointer has already been translated, so just do an increment
+ curPrdAddr = curPrdAddr + sizeof(PrdEntry_t);
if (dmaRead)
doDmaRead();