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(CheckpointOut &cp) const |
121{ |
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 |
131LocalSimLoopExitEvent::unserialize(CheckpointIn &cp) |
132{ |
133 Event::unserialize(cp); |
134 135 UNSERIALIZE_SCALAR(cause); 136 UNSERIALIZE_SCALAR(code); 137 UNSERIALIZE_SCALAR(repeat); 138} 139 140void |
141LocalSimLoopExitEvent::unserializeEvent(CheckpointIn &cp, EventQueue *eventq) |
142{ |
143 Event::unserializeEvent(cp, eventq); |
144 145 UNSERIALIZE_SCALAR(cause); 146 UNSERIALIZE_SCALAR(code); 147 UNSERIALIZE_SCALAR(repeat); 148} 149 150Serializable * |
151LocalSimLoopExitEvent::createForUnserialize(CheckpointIn &cp, |
152 const string §ion) 153{ 154 return new LocalSimLoopExitEvent(); 155} 156 157REGISTER_SERIALIZEABLE("LocalSimLoopExitEvent", LocalSimLoopExitEvent) 158 159// --- 27 unchanged lines hidden --- |