Searched refs:tc (Results 1 - 25 of 304) sorted by relevance

1234567891011>>

/gem5/src/kern/
H A Dsystem_events.cc44 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 Dpseudo_inst.hh43 m5Syscall(ThreadContext *tc);
50 m5PageFault(ThreadContext *tc);
H A Dpseudo_inst.cc40 GenericISA::m5Syscall(ThreadContext *tc) argument
46 GenericISA::m5PageFault(ThreadContext *tc) argument
/gem5/src/arch/x86/
H A Dpseudo_inst.hh37 void m5Syscall(ThreadContext *tc);
38 void m5PageFault(ThreadContext *tc);
H A Dpseudo_inst.cc48 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 Dutility.cc53 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 Dfaults.cc55 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 Dfaults.cc43 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 Dsyscall_debug_macros.hh60 DPRINTFS(Syscall##FLAGEXT, tc->getCpuPtr(), "T%d : syscall " FMT, \
61 tc->threadId(), __VA_ARGS__)
H A Dpseudo_inst.hh64 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 Didle_event.cc40 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 Dthreadinfo.hh45 ThreadContext *tc; member in class:FreeBSD::ThreadInfo
50 : tc(_tc), sys(tc->getSystemPtr())
/gem5/src/cpu/
H A Dquiesce_event.cc38 : tc(_tc)
45 DPRINTF(Quiesce, "activating %s\n", tc->getCpuPtr()->name());
46 tc->activate();
/gem5/src/arch/riscv/
H A Dutility.cc38 void initCPU(ThreadContext *tc, int cpuId) argument
41 reset->invoke(tc);
H A Didle_event.cc41 IdleStartEvent::process(ThreadContext *tc) argument
H A Dfaults.cc48 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 Dinterrupts.cc46 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 Didle_event.cc41 IdleStartEvent::process(ThreadContext *tc) argument
H A Dinterrupts.hh74 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 Devents.cc49 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 Dsystem.cc75 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 Dtlbi_op.cc48 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 Devents.cc64 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 Dutility.hh48 inline uint64_t getArgument(ThreadContext *tc, int &number, uint16_t size, argument
51 inline void startupCPU(ThreadContext *tc, int cpuId) {} argument
H A Dremote_gdb.hh51 void replaceThreadContext(ThreadContext *tc) {} argument

Completed in 19 milliseconds

1234567891011>>