summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-10-11 01:59:38 -0400
committerRon Dreslinski <rdreslin@umich.edu>2006-10-11 01:59:38 -0400
commit03c42ea5904ea5f9f5e8d634f6bc61992abef746 (patch)
treedcb169724c921c66e9ca960ff6ca44008cb18de0
parent60252f8e63dae98f2ee7b99336f567a99837edd4 (diff)
downloadgem5-03c42ea5904ea5f9f5e8d634f6bc61992abef746.tar.xz
Update for Atomic Coherece with Gabes bus
--HG-- extra : convert_revision : 6a23052056d1c61cba0a4c77f1030cee419c6fa3
-rw-r--r--src/mem/packet.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index 3a7286a69..7ede48bfd 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -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;
}