summaryrefslogtreecommitdiff
path: root/src/mem/packet.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-09 23:24:21 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-10-09 23:24:21 -0400
commitab444172828e26dfdd35f4a9fcc9c73b9693f7fe (patch)
tree80b469846871fbfda2d8c084441dc7a3f757aea1 /src/mem/packet.hh
parent5448517da4cd13e3c8438850f04367d9614d686b (diff)
downloadgem5-ab444172828e26dfdd35f4a9fcc9c73b9693f7fe.tar.xz
Fixes to the bus, and added fields to the packet.
src/mem/bus.cc: Put back the check to see if the bus is busy. Also, populate the fields in the packet to indicate when the first word and the entire packet will be delivered. src/mem/bus.hh: Remove the occupyBus function. src/mem/packet.hh: Added fields to the packet to indicate when the first chunk of a packet arrives, and when the entire packet arrives. --HG-- extra : convert_revision : cfc7670a33913d48a04d02c6d2448290a51f2d3c
Diffstat (limited to 'src/mem/packet.hh')
-rw-r--r--src/mem/packet.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index 4d57aee75..28864522f 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -90,7 +90,6 @@ class Packet
* be called on it rather than simply delete.*/
bool arrayData;
-
/** The address of the request. This address could be virtual or
* physical, depending on the system configuration. */
Addr addr;
@@ -122,6 +121,12 @@ class Packet
/** Used to calculate latencies for each packet.*/
Tick time;
+ /** The time at which the packet will be fully transmitted */
+ Tick finishTime;
+
+ /** The time at which the first chunk of the packet will be transmitted */
+ Tick firstWordTime;
+
/** The special destination address indicating that the packet
* should be routed based on its address. */
static const short Broadcast = -1;