diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 09:51:04 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 09:51:04 +0100 |
commit | 888ec455cba4174863be5ed9148aaf093a061101 (patch) | |
tree | ccf37fcf4b72fc5de4dcea4ec730aab7f660e572 /src/sim/sim_events.hh | |
parent | 76cd4393c08b83fa9006ee7bce1fb62457e053c1 (diff) | |
download | gem5-888ec455cba4174863be5ed9148aaf093a061101.tar.xz |
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.
Diffstat (limited to 'src/sim/sim_events.hh')
-rw-r--r-- | src/sim/sim_events.hh | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sim/sim_events.hh b/src/sim/sim_events.hh index 8d5d5da7b..7c2393010 100644 --- a/src/sim/sim_events.hh +++ b/src/sim/sim_events.hh @@ -95,8 +95,6 @@ class LocalSimLoopExitEvent : public Event void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; - void unserializeEvent(CheckpointIn &cp, - EventQueue *eventq) M5_ATTR_OVERRIDE; static Serializable *createForUnserialize(CheckpointIn &cp, const std::string §ion); }; |