rtc_pl031.cc (10631:6d6bfdb036ce) | rtc_pl031.cc (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2010-2012 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 --- 178 unchanged lines hidden (view full) --- 187 pendingInt = maskInt & rawInt; 188 if (pendingInt && !old_pending) { 189 DPRINTF(Timer, "-- Causing interrupt\n"); 190 gic->sendInt(intNum); 191 } 192} 193 194void | 1/* 2 * Copyright (c) 2010-2012 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 --- 178 unchanged lines hidden (view full) --- 187 pendingInt = maskInt & rawInt; 188 if (pendingInt && !old_pending) { 189 DPRINTF(Timer, "-- Causing interrupt\n"); 190 gic->sendInt(intNum); 191 } 192} 193 194void |
195PL031::serialize(std::ostream &os) | 195PL031::serialize(CheckpointOut &cp) const |
196{ 197 DPRINTF(Checkpoint, "Serializing Arm PL031\n"); 198 SERIALIZE_SCALAR(timeVal); 199 SERIALIZE_SCALAR(lastWrittenTick); 200 SERIALIZE_SCALAR(loadVal); 201 SERIALIZE_SCALAR(matchVal); 202 SERIALIZE_SCALAR(rawInt); 203 SERIALIZE_SCALAR(maskInt); --- 5 unchanged lines hidden (view full) --- 209 Tick event_time; 210 if (is_in_event){ 211 event_time = matchEvent.when(); 212 SERIALIZE_SCALAR(event_time); 213 } 214} 215 216void | 196{ 197 DPRINTF(Checkpoint, "Serializing Arm PL031\n"); 198 SERIALIZE_SCALAR(timeVal); 199 SERIALIZE_SCALAR(lastWrittenTick); 200 SERIALIZE_SCALAR(loadVal); 201 SERIALIZE_SCALAR(matchVal); 202 SERIALIZE_SCALAR(rawInt); 203 SERIALIZE_SCALAR(maskInt); --- 5 unchanged lines hidden (view full) --- 209 Tick event_time; 210 if (is_in_event){ 211 event_time = matchEvent.when(); 212 SERIALIZE_SCALAR(event_time); 213 } 214} 215 216void |
217PL031::unserialize(Checkpoint *cp, const std::string §ion) | 217PL031::unserialize(CheckpointIn &cp) |
218{ 219 DPRINTF(Checkpoint, "Unserializing Arm PL031\n"); 220 221 UNSERIALIZE_SCALAR(timeVal); 222 UNSERIALIZE_SCALAR(lastWrittenTick); 223 UNSERIALIZE_SCALAR(loadVal); 224 UNSERIALIZE_SCALAR(matchVal); 225 UNSERIALIZE_SCALAR(rawInt); --- 20 unchanged lines hidden --- | 218{ 219 DPRINTF(Checkpoint, "Unserializing Arm PL031\n"); 220 221 UNSERIALIZE_SCALAR(timeVal); 222 UNSERIALIZE_SCALAR(lastWrittenTick); 223 UNSERIALIZE_SCALAR(loadVal); 224 UNSERIALIZE_SCALAR(matchVal); 225 UNSERIALIZE_SCALAR(rawInt); --- 20 unchanged lines hidden --- |