diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-04-28 15:38:43 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-04-28 15:38:43 -0400 |
commit | c4b3a2fa0f0cbddbb3590964abf1f20a2f2bc6f3 (patch) | |
tree | d33e8a30450721f6ec8271d4db0810af91f9b5f8 /dev/tsunami_pchip.cc | |
parent | 53d93ef9182aade99faa5996dece522d9aba88d1 (diff) | |
download | gem5-c4b3a2fa0f0cbddbb3590964abf1f20a2f2bc6f3.tar.xz |
devices should increment pkt.time instead of assiging to it
--HG--
extra : convert_revision : b4ca3c7fc13bf0856eb2a800a11d5611b473ec3e
Diffstat (limited to 'dev/tsunami_pchip.cc')
-rw-r--r-- | dev/tsunami_pchip.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/tsunami_pchip.cc b/dev/tsunami_pchip.cc index 05b480cb8..1323a0548 100644 --- a/dev/tsunami_pchip.cc +++ b/dev/tsunami_pchip.cc @@ -71,7 +71,7 @@ TsunamiPChip::read(Packet &pkt) assert(pkt.addr >= pioAddr && pkt.addr < pioAddr + pioSize); - pkt.time = curTick + pioDelay; + pkt.time += pioDelay; pkt.allocate(); Addr daddr = (pkt.addr - pioAddr) >> 6;; assert(pkt.size == sizeof(uint64_t)); @@ -151,7 +151,7 @@ TsunamiPChip::read(Packet &pkt) Tick TsunamiPChip::write(Packet &pkt) { - pkt.time = curTick + pioDelay; + pkt.time += pioDelay; assert(pkt.result == Unknown); assert(pkt.addr >= pioAddr && pkt.addr < pioAddr + pioSize); |