X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fide_disk.cc;h=99724f07788c1c5f7b5cde237ccf465274da6319;hb=239183cfe675684aeca1a2b24362ca5e0a82809d;hp=ee21feaeae1853ebbcdc98b120824519459f5d25;hpb=17bfb1540e938406548202f3f1c941857f514c33;p=gem5.git 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();