Lines Matching refs:thread

60     return thread->getVirtProxy();
67 thread->dumpFuncProfile();
79 thread->kernelStats = old_context->getKernelStats();
80 thread->funcExeInst = old_context->readFuncExeInst();
82 thread->noSquashFromTC = false;
83 thread->trapPending = false;
93 if (thread->status() == ThreadContext::Active)
96 thread->lastActivate = curTick();
97 thread->setStatus(ThreadContext::Active);
100 cpu->activateContext(thread->threadId());
110 if (thread->status() == ThreadContext::Suspended)
118 thread->lastActivate = curTick();
119 thread->lastSuspend = curTick();
121 thread->setStatus(ThreadContext::Suspended);
122 cpu->suspendContext(thread->threadId());
131 if (thread->status() == ThreadContext::Halting ||
132 thread->status() == ThreadContext::Halted)
135 // the thread is not going to halt/terminate immediately in this cycle.
136 // The thread will be removed after an exit trap is processed
137 // (e.g., after trapLatency cycles). Until then, the thread's status
139 thread->setStatus(ThreadContext::Halting);
141 // add this thread to the exiting list to mark that it is trying to exit.
142 cpu->addThreadToExitingList(thread->threadId());
150 thread->kernelStats = new TheISA::Kernel::Statistics();
151 thread->kernelStats->regStats(name + ".kern");
159 return thread->lastActivate;
166 return thread->lastSuspend;
173 thread->profileClear();
180 thread->profileSample();
191 thread->noSquashFromTC = true;
193 thread->noSquashFromTC = false;
196 this->thread->funcExeInst = tc->readFuncExeInst();
203 cpu->isa[thread->threadId()]->clear();
210 return cpu->readArchIntReg(reg_idx, thread->threadId());
217 return cpu->readArchFloatReg(reg_idx, thread->threadId());
224 return cpu->readArchVecReg(reg_id, thread->threadId());
231 return cpu->getWritableArchVecReg(reg_id, thread->threadId());
239 return cpu->readArchVecElem(idx, elemIndex, thread->threadId());
246 return cpu->readArchVecPredReg(reg_id, thread->threadId());
253 return cpu->getWritableArchVecPredReg(reg_id, thread->threadId());
260 return cpu->readArchCCReg(reg_idx, thread->threadId());
267 cpu->setArchIntReg(reg_idx, val, thread->threadId());
276 cpu->setArchFloatReg(reg_idx, val, thread->threadId());
286 cpu->setArchVecReg(reg_idx, val, thread->threadId());
296 cpu->setArchVecElem(idx, elemIndex, val, thread->threadId());
305 cpu->setArchVecPredReg(reg_idx, val, thread->threadId());
314 cpu->setArchCCReg(reg_idx, val, thread->threadId());
323 cpu->pcState(val, thread->threadId());
332 cpu->pcState(val, thread->threadId());
341 return cpu->isa[thread->threadId()]->flattenRegId(regId);
348 cpu->setMiscRegNoEffect(misc_reg, val, thread->threadId());
357 cpu->setMiscReg(misc_reg, val, thread->threadId());