Merge zizzer.eecs.umich.edu:/bk/newmem
[gem5.git] / src / mem / packet.hh
index 99841915629d72245084237a1ff2f613ad79eb5f..3a7286a697caed5cb95bb54b47b6ac3d650d08e4 100644 (file)
@@ -92,7 +92,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;
@@ -124,6 +123,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;
@@ -327,6 +332,8 @@ class Packet
         icmd |= IsResponse;
         if (isRead())
             icmd |= HasData;
+        if (isWrite())
+            icmd &= ~HasData;
         cmd = (Command)icmd;
         dest = src;
         srcValid = false;