diff options
Diffstat (limited to 'src/mem/packet.hh')
-rw-r--r-- | src/mem/packet.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh index c58862270..e7a5335a8 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -590,6 +590,15 @@ class Packet : public FastAlloc, public Printable 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 |