Lines Matching refs:thread
169 /* Per-thread structures */
218 ThreadContext *thread = cpu.getContext(inst->id.threadId);
220 TheISA::PCState target = thread->pcState();
224 bool force_branch = thread->status() != ThreadContext::Suspended &&
245 thread->pcState(target);
325 ThreadContext *thread = cpu.getContext(thread_id);
354 fault->invoke(thread, inst->staticInst);
386 fault->invoke(thread, inst->staticInst);
461 ThreadContext *thread = cpu.getContext(inst->id.threadId);
462 TheISA::PCState old_pc = thread->pcState();
510 /* Restore thread PC */
511 thread->pcState(old_pc);
546 ExecuteThreadInfo &thread = executeInfo[thread_id];
572 MinorDynInstPtr inst = insts_in->insts[thread.inputIndex];
584 " thread\n", *inst);
588 } else if (inst->id.streamSeqNum != thread.streamSeqNum) {
591 *inst, thread.streamSeqNum);
638 thread.inFlightInsts->push(fu_inst);
744 thread.inFUMemInsts->push(fu_inst);
764 thread.inFlightInsts->push(fu_inst);
807 thread.inputIndex++;
809 thread.inputIndex);
813 if (thread.inputIndex == insts_in->width()) {
824 } while (insts_in && thread.inputIndex < insts_in->width() &&
837 ThreadContext *thread = cpu.getContext(thread_id);
843 oldPC = thread->instAddr();
844 cpu.system->pcEventQueue.service(thread);
846 } while (oldPC != thread->instAddr());
850 thread->pcState());
861 MinorThread *thread = cpu.threads[inst->id.threadId];
864 * thread and system */
867 thread->numInst++;
868 thread->numInsts++;
873 cpu.comInstEventQueue[inst->id.threadId]->serviceEvents(thread->numInst);
876 thread->numOp++;
877 thread->numOps++;
884 inst->traceData->setCPSeq(thread->numOp);
895 ThreadContext *thread = cpu.getContext(thread_id);
900 /* Is the thread for this instruction suspended? In that case, just
902 if (thread->status() == ThreadContext::Suspended &&
906 "suspended thread as the streamSeqNum should not match");
914 inst->fault->invoke(thread, NULL);
947 fault->invoke(thread, NULL);
985 fault->invoke(thread, inst->staticInst);
998 /* Check to see if this instruction suspended the current thread. */
1000 thread->status() == ThreadContext::Suspended &&
1009 DPRINTF(MinorInterrupt, "Suspending thread: %d from Execute"
1119 ThreadContext *thread = cpu.getContext(thread_id);
1123 MinorDynInst::bubble(), thread->pcState(), branch);
1245 ThreadContext *thread = cpu.getContext(thread_id);
1248 thread, NULL);
1501 /* Find the next issuable instruction for each thread and see if it can
1527 /* Could we possibly issue the next instruction from any thread?
1692 panic("Invalid thread policy");
1759 panic("Invalid thread scheduling policy.");