diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2005-01-19 16:26:19 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2005-01-19 16:26:19 -0500 |
commit | 10371be698b411bc068137bf2add0c5a74ec60eb (patch) | |
tree | fb07798420f835fd0cd092e224aa76621ea55b1b /dev | |
parent | b65f365474e6e861275cdab493fd1ad62b98933b (diff) | |
download | gem5-10371be698b411bc068137bf2add0c5a74ec60eb.tar.xz |
Fix serialization of txPacket (need to properly calculate the length before serialization)
--HG--
extra : convert_revision : e93321495d19afb86949daf2c14102ffb6bcef41
Diffstat (limited to 'dev')
-rw-r--r-- | dev/ns_gige.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index aa47436f7..e799c10d2 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -2352,6 +2352,7 @@ NSGigE::serialize(ostream &os) bool txPacketExists = txPacket; SERIALIZE_SCALAR(txPacketExists); if (txPacketExists) { + txPacket->length = txPacketBufPtr - txPacket->data; txPacket->serialize("txPacket", os); uint32_t txPktBufPtr = (uint32_t) (txPacketBufPtr - txPacket->data); SERIALIZE_SCALAR(txPktBufPtr); |