base.cc (10858:6734ec272816) base.cc (10905:a6ca6831e775)
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
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(std::ostream &os, ThreadID tid)
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);
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(os);
271 thread->serialize(cp);
272}
273
274void
272}
273
274void
275BaseKvmCPU::unserializeThread(Checkpoint *cp, const std::string &section,
276 ThreadID tid)
275BaseKvmCPU::unserializeThread(CheckpointIn &cp, ThreadID tid)
277{
278 DPRINTF(Checkpoint, "KVM: Unserialize thread %i:\n", tid);
279
280 assert(tid == 0);
281 assert(_status == Idle);
276{
277 DPRINTF(Checkpoint, "KVM: Unserialize thread %i:\n", tid);
278
279 assert(tid == 0);
280 assert(_status == Idle);
282 thread->unserialize(cp, section);
281 thread->unserialize(cp);
283 threadContextDirty = true;
284}
285
286unsigned int
287BaseKvmCPU::drain(DrainManager *dm)
288{
289 if (switchedOut())
290 return 0;

--- 215 unchanged lines hidden (view full) ---

506Counter
507BaseKvmCPU::totalOps() const
508{
509 hack_once("Pretending totalOps is equivalent to totalInsts()\n");
510 return ctrInsts;
511}
512
513void
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
514BaseKvmCPU::dump()
513BaseKvmCPU::dump() const
515{
516 inform("State dumping not implemented.");
517}
518
519void
520BaseKvmCPU::tick()
521{
522 Tick delay(0);

--- 759 unchanged lines hidden ---
514{
515 inform("State dumping not implemented.");
516}
517
518void
519BaseKvmCPU::tick()
520{
521 Tick delay(0);

--- 759 unchanged lines hidden ---