base.cc (10157:5c2ecad1a3c9) base.cc (10407:a9023811bf9e)
1/*
2 * Copyright (c) 2012 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

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

425
426 if (thread->status() != ThreadContext::Suspended)
427 return;
428
429 thread->activate();
430}
431
432void
1/*
2 * Copyright (c) 2012 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

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

425
426 if (thread->status() != ThreadContext::Suspended)
427 return;
428
429 thread->activate();
430}
431
432void
433BaseKvmCPU::activateContext(ThreadID thread_num, Cycles delay)
433BaseKvmCPU::activateContext(ThreadID thread_num)
434{
434{
435 DPRINTF(Kvm, "ActivateContext %d (%d cycles)\n", thread_num, delay);
435 DPRINTF(Kvm, "ActivateContext %d\n", thread_num);
436
437 assert(thread_num == 0);
438 assert(thread);
439
440 assert(_status == Idle);
441 assert(!tickEvent.scheduled());
442
443 numCycles += ticksToCycles(thread->lastActivate - thread->lastSuspend);
444
436
437 assert(thread_num == 0);
438 assert(thread);
439
440 assert(_status == Idle);
441 assert(!tickEvent.scheduled());
442
443 numCycles += ticksToCycles(thread->lastActivate - thread->lastSuspend);
444
445 schedule(tickEvent, clockEdge(delay));
445 schedule(tickEvent, clockEdge(Cycles(0)));
446 _status = Running;
447}
448
449
450void
451BaseKvmCPU::suspendContext(ThreadID thread_num)
452{
453 DPRINTF(Kvm, "SuspendContext %d\n", thread_num);

--- 814 unchanged lines hidden ---
446 _status = Running;
447}
448
449
450void
451BaseKvmCPU::suspendContext(ThreadID thread_num)
452{
453 DPRINTF(Kvm, "SuspendContext %d\n", thread_num);

--- 814 unchanged lines hidden ---