summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-01-19 16:34:35 -0500
committerKevin Lim <ktlim@umich.edu>2005-01-19 16:34:35 -0500
commit6ac7954242abf87252b2927c213e9e95bb0772ce (patch)
treec7d8fd516d212df1fe4a884b87c9f50a4266e357 /dev
parent554dc7831f414c14ee194169356d15bd9e5945e1 (diff)
parent10371be698b411bc068137bf2add0c5a74ec60eb (diff)
downloadgem5-6ac7954242abf87252b2927c213e9e95bb0772ce.tar.xz
Merge zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5-patched/m5-new --HG-- extra : convert_revision : 3b9413a6861eaddb8de753d76e217106d41cc347
Diffstat (limited to 'dev')
-rw-r--r--dev/ns_gige.cc1
-rw-r--r--dev/pktfifo.cc1
2 files changed, 1 insertions, 1 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);
diff --git a/dev/pktfifo.cc b/dev/pktfifo.cc
index ae82123cf..79a96cc1d 100644
--- a/dev/pktfifo.cc
+++ b/dev/pktfifo.cc
@@ -60,7 +60,6 @@ PacketFifo::unserialize(const string &base, Checkpoint *cp,
paramIn(cp, section, base + ".packets", fifosize);
fifo.clear();
- fifo.resize(fifosize);
for (int i = 0; i < fifosize; ++i) {
PacketPtr p = new PacketData(16384);