From: Ron Dreslinski Date: Fri, 21 Jan 2005 09:55:43 +0000 (-0500) Subject: Fix annoying bug that lead to dropped packets in the P4 system X-Git-Tag: m5_1.0_tutorial~99^2^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=867d80d55df081b4deae36a15d48dc36560fbde5;p=gem5.git Fix annoying bug that lead to dropped packets in the P4 system dev/pktfifo.cc: Make it so that we don't unserialize the size of the fifo, clobering the fact that we were trying to make it bigger, and leading to a misleading config.out that states the un-overwritten max_size. Perhaps this should instead be a panic if the size (amount that was serialized) is bigger than the maxsize that was assigned by the configuration file. --HG-- extra : convert_revision : d4b0527bfd7a584554ddc87c9b2103f7a3a72332 --- diff --git a/dev/pktfifo.cc b/dev/pktfifo.cc index 79a96cc1d..dcb1c4c03 100644 --- a/dev/pktfifo.cc +++ b/dev/pktfifo.cc @@ -54,7 +54,7 @@ PacketFifo::unserialize(const string &base, Checkpoint *cp, const string §ion) { paramIn(cp, section, base + ".size", _size); - paramIn(cp, section, base + ".maxsize", _maxsize); +// paramIn(cp, section, base + ".maxsize", _maxsize); paramIn(cp, section, base + ".reserved", _reserved); int fifosize; paramIn(cp, section, base + ".packets", fifosize);