1/* 2 * Copyright (c) 2012, 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 --- 245 unchanged lines hidden (view full) --- 254 255 numHypercalls 256 .name(name() + ".numHypercalls") 257 .desc("number of hypercalls") 258 ; 259} 260 261void |
262BaseKvmCPU::serializeThread(CheckpointOut &cp, ThreadID tid) const |
263{ 264 if (DTRACE(Checkpoint)) { 265 DPRINTF(Checkpoint, "KVM: Serializing thread %i:\n", tid); 266 dump(); 267 } 268 269 assert(tid == 0); 270 assert(_status == Idle); |
271 thread->serialize(cp); |
272} 273 274void |
275BaseKvmCPU::unserializeThread(CheckpointIn &cp, ThreadID tid) |
276{ 277 DPRINTF(Checkpoint, "KVM: Unserialize thread %i:\n", tid); 278 279 assert(tid == 0); 280 assert(_status == Idle); |
281 thread->unserialize(cp); |
282 threadContextDirty = true; 283} 284 285unsigned int 286BaseKvmCPU::drain(DrainManager *dm) 287{ 288 if (switchedOut()) 289 return 0; --- 215 unchanged lines hidden (view full) --- 505Counter 506BaseKvmCPU::totalOps() const 507{ 508 hack_once("Pretending totalOps is equivalent to totalInsts()\n"); 509 return ctrInsts; 510} 511 512void |
513BaseKvmCPU::dump() const |
514{ 515 inform("State dumping not implemented."); 516} 517 518void 519BaseKvmCPU::tick() 520{ 521 Tick delay(0); --- 759 unchanged lines hidden --- |