pl011.cc (10718:4ed87af2930f) | pl011.cc (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2010, 2015 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 --- 258 unchanged lines hidden (view full) --- 267 } else if (old_ints && !maskInt()) { 268 gic->clearInt(intNum); 269 } 270} 271 272 273 274void | 1/* 2 * Copyright (c) 2010, 2015 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 --- 258 unchanged lines hidden (view full) --- 267 } else if (old_ints && !maskInt()) { 268 gic->clearInt(intNum); 269 } 270} 271 272 273 274void |
275Pl011::serialize(std::ostream &os) | 275Pl011::serialize(CheckpointOut &cp) const |
276{ 277 DPRINTF(Checkpoint, "Serializing Arm PL011\n"); 278 SERIALIZE_SCALAR(control); 279 SERIALIZE_SCALAR(fbrd); 280 SERIALIZE_SCALAR(ibrd); 281 SERIALIZE_SCALAR(lcrh); 282 SERIALIZE_SCALAR(ifls); 283 284 // Preserve backwards compatibility by giving these silly names. | 276{ 277 DPRINTF(Checkpoint, "Serializing Arm PL011\n"); 278 SERIALIZE_SCALAR(control); 279 SERIALIZE_SCALAR(fbrd); 280 SERIALIZE_SCALAR(ibrd); 281 SERIALIZE_SCALAR(lcrh); 282 SERIALIZE_SCALAR(ifls); 283 284 // Preserve backwards compatibility by giving these silly names. |
285 paramOut(os, "imsc_serial", imsc); 286 paramOut(os, "rawInt_serial", rawInt); | 285 paramOut(cp, "imsc_serial", imsc); 286 paramOut(cp, "rawInt_serial", rawInt); |
287} 288 289void | 287} 288 289void |
290Pl011::unserialize(Checkpoint *cp, const std::string §ion) | 290Pl011::unserialize(CheckpointIn &cp) |
291{ 292 DPRINTF(Checkpoint, "Unserializing Arm PL011\n"); 293 294 UNSERIALIZE_SCALAR(control); 295 UNSERIALIZE_SCALAR(fbrd); 296 UNSERIALIZE_SCALAR(ibrd); 297 UNSERIALIZE_SCALAR(lcrh); 298 UNSERIALIZE_SCALAR(ifls); 299 300 // Preserve backwards compatibility by giving these silly names. | 291{ 292 DPRINTF(Checkpoint, "Unserializing Arm PL011\n"); 293 294 UNSERIALIZE_SCALAR(control); 295 UNSERIALIZE_SCALAR(fbrd); 296 UNSERIALIZE_SCALAR(ibrd); 297 UNSERIALIZE_SCALAR(lcrh); 298 UNSERIALIZE_SCALAR(ifls); 299 300 // Preserve backwards compatibility by giving these silly names. |
301 paramIn(cp, section, "imsc_serial", imsc); 302 paramIn(cp, section, "rawInt_serial", rawInt); | 301 paramIn(cp, "imsc_serial", imsc); 302 paramIn(cp, "rawInt_serial", rawInt); |
303} 304 305Pl011 * 306Pl011Params::create() 307{ 308 return new Pl011(this); 309} | 303} 304 305Pl011 * 306Pl011Params::create() 307{ 308 return new Pl011(this); 309} |