From: Nathan Binkert Date: Mon, 2 May 2005 22:55:39 +0000 (-0400) Subject: Improve checkpointing of ethernet packets a bit. X-Git-Tag: m5_1.0_tutorial~54^2~10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1760925f73345cf6088f2b636d9daa62b385928a;p=gem5.git Improve checkpointing of ethernet packets a bit. dev/etherpkt.cc: Don't try to suck in the packet if the length is zero. --HG-- extra : convert_revision : 7212f3b677777fbce301f0613b9f513bb9fe057e --- diff --git a/dev/etherpkt.cc b/dev/etherpkt.cc index bf60bc150..475274326 100644 --- a/dev/etherpkt.cc +++ b/dev/etherpkt.cc @@ -46,5 +46,6 @@ PacketData::unserialize(const string &base, Checkpoint *cp, const string §ion) { paramIn(cp, section, base + ".length", length); - arrayParamIn(cp, section, base + ".data", data, length); + if (length) + arrayParamIn(cp, section, base + ".data", data, length); }