Deleted Added
sdiff udiff text old ( 10858:6734ec272816 ) new ( 10905:a6ca6831e775 )
full compact
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)
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);
272}
273
274void
275BaseKvmCPU::unserializeThread(Checkpoint *cp, const std::string &section,
276 ThreadID tid)
277{
278 DPRINTF(Checkpoint, "KVM: Unserialize thread %i:\n", tid);
279
280 assert(tid == 0);
281 assert(_status == Idle);
282 thread->unserialize(cp, section);
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
514BaseKvmCPU::dump()
515{
516 inform("State dumping not implemented.");
517}
518
519void
520BaseKvmCPU::tick()
521{
522 Tick delay(0);

--- 759 unchanged lines hidden ---