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/sinic.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/sinic.cc')
-rw-r--r-- | dev/sinic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/sinic.cc b/dev/sinic.cc index b91ef83b0..b5b6c6cf5 100644 --- a/dev/sinic.cc +++ b/dev/sinic.cc @@ -321,7 +321,7 @@ Device::read(Packet &pkt) Addr index = daddr >> Regs::VirtualShift; Addr raddr = daddr & Regs::VirtualMask; - pkt.time = curTick + pioDelay; + pkt.time += pioDelay; pkt.allocate(); if (!regValid(raddr)) @@ -408,7 +408,7 @@ Device::write(Packet &pkt) Addr index = daddr >> Regs::VirtualShift; Addr raddr = daddr & Regs::VirtualMask; - pkt.time = curTick + pioDelay; + pkt.time += pioDelay; if (!regValid(raddr)) panic("invalid register: cpu=%d, da=%#x pa=%#x size=%d", |