summaryrefslogtreecommitdiff
path: root/dev/pktfifo.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-01-19 12:43:06 -0500
committerNathan Binkert <binkertn@umich.edu>2005-01-19 12:43:06 -0500
commitb65f365474e6e861275cdab493fd1ad62b98933b (patch)
treecd399a6af24f7443f7c1cb3a86ad574d0eae16fb /dev/pktfifo.cc
parent40160ef0743ee52e84c944df608a925382353a8a (diff)
downloadgem5-b65f365474e6e861275cdab493fd1ad62b98933b.tar.xz
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
Diffstat (limited to 'dev/pktfifo.cc')
-rw-r--r--dev/pktfifo.cc1
1 files changed, 0 insertions, 1 deletions
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);