pl011.cc (7587:177151a54462) | pl011.cc (7733:08d6a773d1b6) |
---|---|
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 --- 260 unchanged lines hidden (view full) --- 269 270} 271 272 273 274void 275Pl011::serialize(std::ostream &os) 276{ | 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 --- 260 unchanged lines hidden (view full) --- 269 270} 271 272 273 274void 275Pl011::serialize(std::ostream &os) 276{ |
277 panic("Need to implement serialization\n"); | 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 uint16_t imsc_serial = imsc; 285 SERIALIZE_SCALAR(imsc_serial); 286 287 uint16_t rawInt_serial = rawInt; 288 SERIALIZE_SCALAR(rawInt_serial); 289 290 uint16_t maskInt_serial = maskInt; 291 SERIALIZE_SCALAR(maskInt_serial); 292 293 SERIALIZE_SCALAR(endOnEOT); 294 SERIALIZE_SCALAR(intDelay); |
278} 279 280void 281Pl011::unserialize(Checkpoint *cp, const std::string §ion) 282{ | 295} 296 297void 298Pl011::unserialize(Checkpoint *cp, const std::string §ion) 299{ |
283 panic("Need to implement serialization\n"); | 300 DPRINTF(Checkpoint, "Unserializing Arm PL011\n"); 301 302 UNSERIALIZE_SCALAR(control); 303 UNSERIALIZE_SCALAR(fbrd); 304 UNSERIALIZE_SCALAR(ibrd); 305 UNSERIALIZE_SCALAR(lcrh); 306 UNSERIALIZE_SCALAR(ifls); 307 308 uint16_t imsc_serial; 309 UNSERIALIZE_SCALAR(imsc_serial); 310 imsc = imsc_serial; 311 312 uint16_t rawInt_serial; 313 UNSERIALIZE_SCALAR(rawInt_serial); 314 rawInt = rawInt_serial; 315 316 uint16_t maskInt_serial; 317 UNSERIALIZE_SCALAR(maskInt_serial); 318 maskInt = maskInt_serial; 319 320 UNSERIALIZE_SCALAR(endOnEOT); 321 UNSERIALIZE_SCALAR(intDelay); |
284} 285 286Pl011 * 287Pl011Params::create() 288{ 289 return new Pl011(this); 290} | 322} 323 324Pl011 * 325Pl011Params::create() 326{ 327 return new Pl011(this); 328} |