diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-11-18 16:23:31 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-11-18 16:23:31 -0500 |
commit | 86836124ed272945e9d360c068728cd03917398d (patch) | |
tree | 9ed1b9a3cfe3552e7a62d6b202436fd00acf2e3e /dev/etherlink.cc | |
parent | e3c3e44ac15f030ca5b76dbdb85584e20932ee94 (diff) | |
download | gem5-86836124ed272945e9d360c068728cd03917398d.tar.xz |
always initalize the size of a packet (forgotten on checkpoints
in some places). use the constructor for setting the size.
--HG--
extra : convert_revision : fad322c1d45b1952804cf35942b5685d70128e59
Diffstat (limited to 'dev/etherlink.cc')
-rw-r--r-- | dev/etherlink.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/etherlink.cc b/dev/etherlink.cc index 1e2be41fe..d637e152a 100644 --- a/dev/etherlink.cc +++ b/dev/etherlink.cc @@ -195,7 +195,7 @@ EtherLink::Link::unserialize(Checkpoint *cp, const string §ion) bool packet_exists; UNSERIALIZE_SCALAR(packet_exists); if (packet_exists) { - packet = new PacketData; + packet = new PacketData(16384); packet->unserialize("packet", cp, section); } @@ -244,7 +244,7 @@ void LinkDelayEvent::unserialize(Checkpoint *cp, const string §ion) { Event::unserialize(cp, section); - packet = new PacketData; + packet = new PacketData(16384); packet->unserialize("packet", cp, section); } |