Fix a small bug in parameter processing that would always result
[gem5.git] / dev / ide_disk.cc
index ee21feaeae1853ebbcdc98b120824519459f5d25..99724f07788c1c5f7b5cde237ccf465274da6319 100644 (file)
@@ -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();