changeset 77c9c4d5007d in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=77c9c4d5007d
description:
        packet: add a method to set the size

diffstat:

1 file changed, 9 insertions(+)
src/mem/packet.hh |    9 +++++++++

diffs (19 lines):

diff -r 3d5c4acb6015 -r 77c9c4d5007d src/mem/packet.hh
--- a/src/mem/packet.hh Fri Mar 12 17:31:04 2010 -0800
+++ b/src/mem/packet.hh Fri Mar 12 17:31:08 2010 -0800
@@ -590,6 +590,15 @@
         setDest(Broadcast);
     }
 
+    void
+    setSize(unsigned size)
+    {
+        assert(!flags.isSet(VALID_SIZE));
+
+        this->size = size;
+        flags.set(VALID_SIZE);
+    }
+
 
     /**
      * Set the data pointer to the following value that should not be
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to