sim_events.cc (9983:2cce74fe359e) sim_events.cc (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 103 unchanged lines hidden (view full) ---

112
113const char *
114LocalSimLoopExitEvent::description() const
115{
116 return "simulation loop exit";
117}
118
119void
1/*
2 * Copyright (c) 2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 103 unchanged lines hidden (view full) ---

112
113const char *
114LocalSimLoopExitEvent::description() const
115{
116 return "simulation loop exit";
117}
118
119void
120LocalSimLoopExitEvent::serialize(ostream &os)
120LocalSimLoopExitEvent::serialize(CheckpointOut &cp) const
121{
121{
122 paramOut(os, "type", string("SimLoopExitEvent"));
123 Event::serialize(os);
122 paramOut(cp, "type", string("SimLoopExitEvent"));
123 Event::serialize(cp);
124
125 SERIALIZE_SCALAR(cause);
126 SERIALIZE_SCALAR(code);
127 SERIALIZE_SCALAR(repeat);
128}
129
130void
124
125 SERIALIZE_SCALAR(cause);
126 SERIALIZE_SCALAR(code);
127 SERIALIZE_SCALAR(repeat);
128}
129
130void
131LocalSimLoopExitEvent::unserialize(Checkpoint *cp, const string &section)
131LocalSimLoopExitEvent::unserialize(CheckpointIn &cp)
132{
132{
133 Event::unserialize(cp, section);
133 Event::unserialize(cp);
134
135 UNSERIALIZE_SCALAR(cause);
136 UNSERIALIZE_SCALAR(code);
137 UNSERIALIZE_SCALAR(repeat);
138}
139
140void
134
135 UNSERIALIZE_SCALAR(cause);
136 UNSERIALIZE_SCALAR(code);
137 UNSERIALIZE_SCALAR(repeat);
138}
139
140void
141LocalSimLoopExitEvent::unserialize(Checkpoint *cp, const string &section,
142 EventQueue *eventq)
141LocalSimLoopExitEvent::unserializeEvent(CheckpointIn &cp, EventQueue *eventq)
143{
142{
144 Event::unserialize(cp, section, eventq);
143 Event::unserializeEvent(cp, eventq);
145
146 UNSERIALIZE_SCALAR(cause);
147 UNSERIALIZE_SCALAR(code);
148 UNSERIALIZE_SCALAR(repeat);
149}
150
151Serializable *
144
145 UNSERIALIZE_SCALAR(cause);
146 UNSERIALIZE_SCALAR(code);
147 UNSERIALIZE_SCALAR(repeat);
148}
149
150Serializable *
152LocalSimLoopExitEvent::createForUnserialize(Checkpoint *cp,
151LocalSimLoopExitEvent::createForUnserialize(CheckpointIn &cp,
153 const string &section)
154{
155 return new LocalSimLoopExitEvent();
156}
157
158REGISTER_SERIALIZEABLE("LocalSimLoopExitEvent", LocalSimLoopExitEvent)
159
160//

--- 27 unchanged lines hidden ---
152 const string &section)
153{
154 return new LocalSimLoopExitEvent();
155}
156
157REGISTER_SERIALIZEABLE("LocalSimLoopExitEvent", LocalSimLoopExitEvent)
158
159//

--- 27 unchanged lines hidden ---