projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40160ef
)
fix unserialization of PacketFifo
author
Nathan Binkert
<binkertn@umich.edu>
Wed, 19 Jan 2005 17:43:06 +0000
(12:43 -0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Wed, 19 Jan 2005 17:43:06 +0000
(12:43 -0500)
dev/pktfifo.cc:
fix unserialization. calling resize on a list just sticks
uninitialized garbage into the list.
--HG--
extra : convert_revision :
1cbff596dd0b88560e23b9368ec75a7369beb9d9
dev/pktfifo.cc
patch
|
blob
|
history
diff --git
a/dev/pktfifo.cc
b/dev/pktfifo.cc
index ae82123cf688619da9cda34da51ab1da98417b6c..79a96cc1d8424bbacafca33244a6df52daabbbc3 100644
(file)
--- 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);