From: Nathan Binkert Date: Wed, 19 Jan 2005 17:43:06 +0000 (-0500) Subject: fix unserialization of PacketFifo X-Git-Tag: m5_1.0_tutorial~101^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b65f365474e6e861275cdab493fd1ad62b98933b;p=gem5.git fix unserialization of PacketFifo dev/pktfifo.cc: fix unserialization. calling resize on a list just sticks uninitialized garbage into the list. --HG-- extra : convert_revision : 1cbff596dd0b88560e23b9368ec75a7369beb9d9 --- 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);