Update for Atomic Coherece with Gabes bus
authorRon Dreslinski <rdreslin@umich.edu>
Wed, 11 Oct 2006 05:59:38 +0000 (01:59 -0400)
committerRon Dreslinski <rdreslin@umich.edu>
Wed, 11 Oct 2006 05:59:38 +0000 (01:59 -0400)
--HG--
extra : convert_revision : 6a23052056d1c61cba0a4c77f1030cee419c6fa3

src/mem/packet.hh

index 3a7286a697caed5cb95bb54b47b6ac3d650d08e4..7ede48bfdcbb1336640c7c3866aa1e17566ff2fc 100644 (file)
@@ -348,6 +348,10 @@ class Packet
         int icmd = (int)cmd;
         icmd &= ~(IsRequest);
         icmd |= IsResponse;
+        if (isRead())
+            icmd |= HasData;
+        if (isWrite())
+            icmd &= ~HasData;
         cmd = (Command)icmd;
     }