diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-05-02 18:55:39 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-05-02 18:55:39 -0400 |
commit | 1760925f73345cf6088f2b636d9daa62b385928a (patch) | |
tree | 36e5f9811face098e3c800a78c57f54cb2638a09 /dev | |
parent | 306a4f2014cd850d43f5a684214947f18501d56a (diff) | |
download | gem5-1760925f73345cf6088f2b636d9daa62b385928a.tar.xz |
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
Diffstat (limited to 'dev')
-rw-r--r-- | dev/etherpkt.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |