timer_sp804.cc (8993:d5f9445010da) timer_sp804.cc (9421:b43a56850757)
1/*
2 * Copyright (c) 2010 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

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

219 else
220 restartCounter(loadValue);
221}
222
223void
224Sp804::Timer::serialize(std::ostream &os)
225{
226 DPRINTF(Checkpoint, "Serializing Arm Sp804\n");
1/*
2 * Copyright (c) 2010 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

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

219 else
220 restartCounter(loadValue);
221}
222
223void
224Sp804::Timer::serialize(std::ostream &os)
225{
226 DPRINTF(Checkpoint, "Serializing Arm Sp804\n");
227 SERIALIZE_SCALAR(intNum);
228 SERIALIZE_SCALAR(clock);
229
230 uint32_t control_serial = control;
231 SERIALIZE_SCALAR(control_serial);
232
233 SERIALIZE_SCALAR(rawInt);
234 SERIALIZE_SCALAR(pendingInt);
235 SERIALIZE_SCALAR(loadValue);
236

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

244 }
245}
246
247void
248Sp804::Timer::unserialize(Checkpoint *cp, const std::string &section)
249{
250 DPRINTF(Checkpoint, "Unserializing Arm Sp804\n");
251
227
228 uint32_t control_serial = control;
229 SERIALIZE_SCALAR(control_serial);
230
231 SERIALIZE_SCALAR(rawInt);
232 SERIALIZE_SCALAR(pendingInt);
233 SERIALIZE_SCALAR(loadValue);
234

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

242 }
243}
244
245void
246Sp804::Timer::unserialize(Checkpoint *cp, const std::string &section)
247{
248 DPRINTF(Checkpoint, "Unserializing Arm Sp804\n");
249
252 UNSERIALIZE_SCALAR(intNum);
253 UNSERIALIZE_SCALAR(clock);
254
255 uint32_t control_serial;
256 UNSERIALIZE_SCALAR(control_serial);
257 control = control_serial;
258
259 UNSERIALIZE_SCALAR(rawInt);
260 UNSERIALIZE_SCALAR(pendingInt);
261 UNSERIALIZE_SCALAR(loadValue);
262

--- 33 unchanged lines hidden ---
250 uint32_t control_serial;
251 UNSERIALIZE_SCALAR(control_serial);
252 control = control_serial;
253
254 UNSERIALIZE_SCALAR(rawInt);
255 UNSERIALIZE_SCALAR(pendingInt);
256 UNSERIALIZE_SCALAR(loadValue);
257

--- 33 unchanged lines hidden ---