diff options
Diffstat (limited to 'src/dev/storage/ide_disk.cc')
-rw-r--r-- | src/dev/storage/ide_disk.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dev/storage/ide_disk.cc b/src/dev/storage/ide_disk.cc index c31c0928f..f2cea5e5e 100644 --- a/src/dev/storage/ide_disk.cc +++ b/src/dev/storage/ide_disk.cc @@ -56,7 +56,6 @@ #include "base/chunk_generator.hh" #include "base/cprintf.hh" // csprintf #include "base/trace.hh" -#include "config/the_isa.hh" #include "debug/IdeDisk.hh" #include "dev/storage/disk_image.hh" #include "dev/storage/ide_ctrl.hh" @@ -440,7 +439,7 @@ IdeDisk::doDmaRead() // clear out the data buffer memset(dataBuffer, 0, MAX_DMA_SIZE); dmaReadCG = new ChunkGenerator(curPrd.getBaseAddr(), - curPrd.getByteCount(), TheISA::PageBytes); + curPrd.getByteCount(), pageBytes); } if (ctrl->dmaPending() || ctrl->drainState() != DrainState::Running) { @@ -452,7 +451,7 @@ IdeDisk::doDmaRead() &dmaReadWaitEvent, dataBuffer + dmaReadCG->complete()); dmaReadBytes += dmaReadCG->size(); dmaReadTxs++; - if (dmaReadCG->size() == TheISA::PageBytes) + if (dmaReadCG->size() == pageBytes) dmaReadFullPages++; dmaReadCG->next(); } else { @@ -523,7 +522,7 @@ IdeDisk::doDmaWrite() if (!dmaWriteCG) { // clear out the data buffer dmaWriteCG = new ChunkGenerator(curPrd.getBaseAddr(), - curPrd.getByteCount(), TheISA::PageBytes); + curPrd.getByteCount(), pageBytes); } if (ctrl->dmaPending() || ctrl->drainState() != DrainState::Running) { schedule(dmaWriteWaitEvent, curTick() + DMA_BACKOFF_PERIOD); @@ -537,7 +536,7 @@ IdeDisk::doDmaWrite() curPrd.getByteCount(), curPrd.getEOT()); dmaWriteBytes += dmaWriteCG->size(); dmaWriteTxs++; - if (dmaWriteCG->size() == TheISA::PageBytes) + if (dmaWriteCG->size() == pageBytes) dmaWriteFullPages++; dmaWriteCG->next(); } else { |