/gem5/src/kern/ |
H A D | system_events.cc | 44 SkipFuncEvent::process(ThreadContext *tc) argument 46 TheISA::PCState oldPC M5_VAR_USED = tc->pcState(); 49 TheISA::skipFunction(tc); 51 oldPC, tc->pcState());
|
/gem5/src/arch/generic/ |
H A D | pseudo_inst.hh | 43 m5Syscall(ThreadContext *tc); 50 m5PageFault(ThreadContext *tc);
|
H A D | pseudo_inst.cc | 40 GenericISA::m5Syscall(ThreadContext *tc) argument 46 GenericISA::m5PageFault(ThreadContext *tc) argument
|
/gem5/src/arch/x86/ |
H A D | pseudo_inst.hh | 37 void m5Syscall(ThreadContext *tc); 38 void m5PageFault(ThreadContext *tc);
|
H A D | pseudo_inst.cc | 48 m5Syscall(ThreadContext *tc) argument 53 tc->syscall(tc->readIntReg(INTREG_RAX), &fault); 55 RegVal rflags = tc->readMiscReg(MISCREG_RFLAGS); 57 tc->setMiscReg(MISCREG_RFLAGS, rflags); 65 m5PageFault(ThreadContext *tc) argument 69 Process *p = tc->getProcessPtr(); 70 if (!p->fixupStackFault(tc->readMiscReg(MISCREG_CR2))) { 71 PortProxy &proxy = tc->getVirtProxy(); 85 tc [all...] |
H A D | utility.cc | 53 getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) argument 68 return tc->readIntReg(int_reg_map[number]); 74 void initCPU(ThreadContext *tc, int cpuId) argument 80 init.invoke(tc); 82 PCState pc = tc->pcState(); 85 tc->pcState(pc); 91 tc->setIntReg(INTREG_MICRO(index), 0); 95 tc->setIntReg(INTREG_IMPLICIT(index), 0); 101 tc->setIntReg(INTREG_RAX, 0); 103 tc 201 startupCPU(ThreadContext *tc, int cpuId) argument 251 skipFunction(ThreadContext *tc) argument 257 getRFlags(ThreadContext *tc) argument 273 setRFlags(ThreadContext *tc, uint64_t val) argument [all...] |
H A D | faults.cc | 55 void X86FaultBase::invoke(ThreadContext * tc, const StaticInstPtr &inst) argument 58 FaultBase::invoke(tc, inst); 62 PCState pcState = tc->pcState(); 67 HandyM5Reg m5reg = tc->readMiscRegNoEffect(MISCREG_M5_REG); 78 tc->setIntReg(INTREG_MICRO(1), vector); 79 tc->setIntReg(INTREG_MICRO(7), pc); 90 tc->setIntReg(INTREG_MICRO(15), errorCode); 94 tc->pcState(pcState); 109 void X86Trap::invoke(ThreadContext * tc, const StaticInstPtr &inst) argument 111 X86FaultBase::invoke(tc); 121 invoke(ThreadContext * tc, const StaticInstPtr &inst) argument 127 invoke(ThreadContext * tc, const StaticInstPtr &inst) argument 137 invoke(ThreadContext * tc, const StaticInstPtr &inst) argument 186 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument 304 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument [all...] |
/gem5/src/sim/ |
H A D | faults.cc | 43 void FaultBase::invoke(ThreadContext * tc, const StaticInstPtr &inst) argument 46 DPRINTF(Fault, "Fault %s at PC: %s\n", name(), tc->pcState()); 48 panic("fault (%s) detected @ PC %s", name(), tc->pcState()); 52 void UnimpFault::invoke(ThreadContext * tc, const StaticInstPtr &inst) argument 57 void ReExec::invoke(ThreadContext *tc, const StaticInstPtr &inst) argument 59 tc->pcState(tc->pcState()); 62 void SyscallRetryFault::invoke(ThreadContext *tc, const StaticInstPtr &inst) argument 64 tc->pcState(tc 67 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument 79 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument [all...] |
H A D | syscall_debug_macros.hh | 60 DPRINTFS(Syscall##FLAGEXT, tc->getCpuPtr(), "T%d : syscall " FMT, \ 61 tc->threadId(), __VA_ARGS__)
|
H A D | pseudo_inst.hh | 64 uint64_t pseudoInst(ThreadContext *tc, uint8_t func, uint8_t subfunc); 66 void arm(ThreadContext *tc); 67 void quiesce(ThreadContext *tc); 68 void quiesceSkip(ThreadContext *tc); 69 void quiesceNs(ThreadContext *tc, uint64_t ns); 70 void quiesceCycles(ThreadContext *tc, uint64_t cycles); 71 uint64_t quiesceTime(ThreadContext *tc); 72 uint64_t readfile(ThreadContext *tc, Addr vaddr, uint64_t len, 74 uint64_t writefile(ThreadContext *tc, Addr vaddr, uint64_t len, 77 void addsymbol(ThreadContext *tc, Add [all...] |
/gem5/src/arch/alpha/ |
H A D | idle_event.cc | 40 IdleStartEvent::process(ThreadContext *tc) argument 42 if (tc->getKernelStats()) { 43 RegVal val = tc->readMiscRegNoEffect(IPR_PALtemp23); 45 tc->getKernelStats()); 47 stats->setIdleProcess(val, tc);
|
/gem5/src/arch/generic/freebsd/ |
H A D | threadinfo.hh | 45 ThreadContext *tc; member in class:FreeBSD::ThreadInfo 50 : tc(_tc), sys(tc->getSystemPtr())
|
/gem5/src/cpu/ |
H A D | quiesce_event.cc | 38 : tc(_tc) 45 DPRINTF(Quiesce, "activating %s\n", tc->getCpuPtr()->name()); 46 tc->activate();
|
/gem5/src/arch/riscv/ |
H A D | utility.cc | 38 void initCPU(ThreadContext *tc, int cpuId) argument 41 reset->invoke(tc);
|
H A D | idle_event.cc | 41 IdleStartEvent::process(ThreadContext *tc) argument
|
H A D | faults.cc | 48 RiscvFault::invokeSE(ThreadContext *tc, const StaticInstPtr &inst) argument 50 panic("Fault %s encountered at pc 0x%016llx.", name(), tc->pcState().pc()); 54 RiscvFault::invoke(ThreadContext *tc, const StaticInstPtr &inst) argument 56 PCState pcState = tc->pcState(); 59 PrivilegeMode pp = (PrivilegeMode)tc->readMiscReg(MISCREG_PRV); 61 STATUS status = tc->readMiscReg(MISCREG_STATUS); 66 bits(tc->readMiscReg(MISCREG_MIDELEG), _code) != 0) { 70 bits(tc->readMiscReg(MISCREG_SIDELEG), _code) != 0) { 75 bits(tc->readMiscReg(MISCREG_MEDELEG), _code) != 0) { 79 bits(tc 141 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument 156 invokeSE(ThreadContext *tc, const StaticInstPtr &inst) argument 163 invokeSE(ThreadContext *tc, const StaticInstPtr &inst) argument 170 invokeSE(ThreadContext *tc, const StaticInstPtr &inst) argument 178 invokeSE(ThreadContext *tc, const StaticInstPtr &inst) argument 185 invokeSE(ThreadContext *tc, const StaticInstPtr &inst) argument 191 invokeSE(ThreadContext *tc, const StaticInstPtr &inst) argument [all...] |
/gem5/src/arch/mips/ |
H A D | interrupts.cc | 46 getCauseIP(ThreadContext *tc) { argument 47 CauseReg cause = tc->readMiscRegNoEffect(MISCREG_CAUSE); 52 setCauseIP(ThreadContext *tc, uint8_t val) { argument 53 CauseReg cause = tc->readMiscRegNoEffect(MISCREG_CAUSE); 55 tc->setMiscRegNoEffect(MISCREG_CAUSE, cause); 59 Interrupts::post(int int_num, ThreadContext* tc) argument 65 uint8_t intstatus = getCauseIP(tc); 67 setCauseIP(tc, intstatus); 77 Interrupts::clear(int int_num, ThreadContext* tc) argument 83 uint8_t intstatus = getCauseIP(tc); 95 clearAll(ThreadContext *tc) argument 133 getInterrupt(ThreadContext * tc) argument [all...] |
H A D | idle_event.cc | 41 IdleStartEvent::process(ThreadContext *tc) argument
|
H A D | interrupts.hh | 74 void post(int int_num, ThreadContext *tc); 83 void clear(int int_num, ThreadContext* tc); 92 void clearAll(ThreadContext *tc); 95 // getInterrupt(ThreadContext * tc) checks if an interrupt 101 Fault getInterrupt(ThreadContext *tc); 103 // updateIntrInfo(ThreadContext *tc) const syncs the 107 void updateIntrInfo(ThreadContext *tc) const; 108 bool interruptsPending(ThreadContext *tc) const; 109 bool onCpuTimerInterrupt(ThreadContext *tc) const; 110 bool checkInterrupts(ThreadContext *tc) cons [all...] |
/gem5/src/kern/freebsd/ |
H A D | events.cc | 49 UDelayEvent::process(ThreadContext *tc) argument 56 uint64_t time = TheISA::getArgument(tc, arg_num, (uint16_t)-1, false); 66 SkipFuncEvent::process(tc); 73 PseudoInst::quiesceNs(tc, time);
|
/gem5/src/arch/mips/linux/ |
H A D | system.cc | 75 LinuxMipsSystem::setDelayLoop(ThreadContext *tc) argument 82 LinuxMipsSystem::SkipDelayLoopEvent::process(ThreadContext *tc) argument 84 SkipFuncEvent::process(tc); 86 ((LinuxMipsSystem *)tc->getSystemPtr())->setDelayLoop(tc); 90 LinuxMipsSystem::PrintThreadInfo::process(ThreadContext *tc) argument 92 Linux::ThreadInfo ti(tc);
|
/gem5/src/arch/arm/ |
H A D | tlbi_op.cc | 48 TLBIALL::operator()(ThreadContext* tc) argument 50 getITBPtr(tc)->flushAllSecurity(secureLookup, targetEL); 51 getDTBPtr(tc)->flushAllSecurity(secureLookup, targetEL); 54 CheckerCPU *checker = tc->getCheckerCpuPtr(); 64 ITLBIALL::operator()(ThreadContext* tc) argument 66 getITBPtr(tc)->flushAllSecurity(secureLookup, targetEL); 70 DTLBIALL::operator()(ThreadContext* tc) argument 72 getDTBPtr(tc)->flushAllSecurity(secureLookup, targetEL); 76 TLBIASID::operator()(ThreadContext* tc) argument 78 getITBPtr(tc) 88 operator ()(ThreadContext* tc) argument 94 operator ()(ThreadContext* tc) argument 100 operator ()(ThreadContext* tc) argument 113 operator ()(ThreadContext* tc) argument 126 operator ()(ThreadContext* tc) argument 143 operator ()(ThreadContext* tc) argument 150 operator ()(ThreadContext* tc) argument 157 operator ()(ThreadContext* tc) argument [all...] |
/gem5/src/kern/linux/ |
H A D | events.cc | 64 DebugPrintkEvent::process(ThreadContext *tc) argument 68 Arguments args(tc); 70 StringWrap name(tc->getSystemPtr()->name() + ".dprintk"); 73 SkipFuncEvent::process(tc); 77 UDelayEvent::process(ThreadContext *tc) argument 82 uint64_t time = TheISA::getArgument(tc, arg_num, (uint16_t)-1, false); 90 SkipFuncEvent::process(tc); 97 PseudoInst::quiesceNs(tc, time); 102 DmesgDumpEvent::process(ThreadContext *tc) argument 104 StringWrap name(tc 115 process(ThreadContext *tc) argument [all...] |
/gem5/src/arch/null/ |
H A D | utility.hh | 48 inline uint64_t getArgument(ThreadContext *tc, int &number, uint16_t size, argument 51 inline void startupCPU(ThreadContext *tc, int cpuId) {} argument
|
H A D | remote_gdb.hh | 51 void replaceThreadContext(ThreadContext *tc) {} argument
|