Lines Matching defs:thread_num
226 AtomicSimpleCPU::activateContext(ThreadID thread_num)
228 DPRINTF(SimpleCPU, "ActivateContext %d\n", thread_num);
230 assert(thread_num < numThreads);
232 threadInfo[thread_num]->notIdleFraction = 1;
233 Cycles delta = ticksToCycles(threadInfo[thread_num]->thread->lastActivate -
234 threadInfo[thread_num]->thread->lastSuspend);
242 if (std::find(activeThreads.begin(), activeThreads.end(), thread_num)
244 activeThreads.push_back(thread_num);
247 BaseCPU::activateContext(thread_num);
252 AtomicSimpleCPU::suspendContext(ThreadID thread_num)
254 DPRINTF(SimpleCPU, "SuspendContext %d\n", thread_num);
256 assert(thread_num < numThreads);
257 activeThreads.remove(thread_num);
264 threadInfo[thread_num]->notIdleFraction = 0;
274 BaseCPU::suspendContext(thread_num);