summaryrefslogtreecommitdiff
path: root/dev/ide_ctrl.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-04-28 15:38:43 -0400
committerAli Saidi <saidi@eecs.umich.edu>2006-04-28 15:38:43 -0400
commitc4b3a2fa0f0cbddbb3590964abf1f20a2f2bc6f3 (patch)
treed33e8a30450721f6ec8271d4db0810af91f9b5f8 /dev/ide_ctrl.cc
parent53d93ef9182aade99faa5996dece522d9aba88d1 (diff)
downloadgem5-c4b3a2fa0f0cbddbb3590964abf1f20a2f2bc6f3.tar.xz
devices should increment pkt.time instead of assiging to it
--HG-- extra : convert_revision : b4ca3c7fc13bf0856eb2a800a11d5611b473ec3e
Diffstat (limited to 'dev/ide_ctrl.cc')
-rw-r--r--dev/ide_ctrl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/ide_ctrl.cc b/dev/ide_ctrl.cc
index 638be9c3d..abdbe5d0a 100644
--- a/dev/ide_ctrl.cc
+++ b/dev/ide_ctrl.cc
@@ -430,7 +430,7 @@ IdeController::read(Packet &pkt)
IdeRegType reg_type;
int disk;
- pkt.time = curTick + pioDelay;
+ pkt.time += pioDelay;
pkt.allocate();
if (pkt.size != 1 && pkt.size != 2 && pkt.size !=4)
panic("Bad IDE read size: %d\n", pkt.size);
@@ -518,7 +518,7 @@ IdeController::write(Packet &pkt)
int disk;
uint8_t oldVal, newVal;
- pkt.time = curTick + pioDelay;
+ pkt.time += pioDelay;
parseAddr(pkt.addr, offset, channel, reg_type);