sim: Fix broken event unserialization
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 7 Jul 2015 08:51:04 +0000 (09:51 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 7 Jul 2015 08:51:04 +0000 (09:51 +0100)
commit888ec455cba4174863be5ed9148aaf093a061101
treeccf37fcf4b72fc5de4dcea4ec730aab7f660e572
parent76cd4393c08b83fa9006ee7bce1fb62457e053c1
sim: Fix broken event unserialization

Events expected to be unserialized using an event-specific
unserializeEvent call. This call was never actually used, which meant
the events relying on it never got unserialized (or scheduled after
unserialization).

Instead of relying on a custom call, we now use the normal
serialization code again. In order to schedule the event correctly,
the parrent object is expected to use the
EventQueue::checkpointReschedule() call. This happens automatically
for events that are serialized using the AutoSerialize mechanism.
src/dev/etherlink.cc
src/sim/eventq.cc
src/sim/eventq.hh
src/sim/serialize.hh
src/sim/sim_events.cc
src/sim/sim_events.hh