Searched refs:tc (Results 76 - 100 of 304) sorted by relevance

1234567891011>>

/gem5/src/arch/alpha/
H A Dprocess.hh52 RegVal getSyscallArg(ThreadContext *tc, int &i) override;
55 void setSyscallArg(ThreadContext *tc, int i, RegVal val) override;
56 void setSyscallReturn(ThreadContext *tc,
H A Didle_event.hh44 virtual void process(ThreadContext *tc);
H A Dev5.cc48 getITBPtr(T *tc) argument
50 auto tlb = dynamic_cast<TLB *>(tc->getITBPtr());
57 getDTBPtr(T *tc) argument
59 auto tlb = dynamic_cast<TLB *>(tc->getDTBPtr());
69 initCPU(ThreadContext *tc, int cpuId) argument
71 initIPRs(tc, cpuId);
73 tc->setIntReg(16, cpuId);
74 tc->setIntReg(0, cpuId);
78 tc->pcState(tc
99 initIPRs(ThreadContext *tc, int cpuId) argument
111 readIpr(int idx, ThreadContext *tc) argument
220 setIpr(int idx, uint64_t val, ThreadContext *tc) argument
[all...]
H A Dstacktrace.cc49 : tc(_tc)
52 PortProxy &vp = tc->getVirtProxy();
53 SymbolTable *symtab = tc->getSystemPtr()->kernelSymtab;
85 PortProxy &vp = tc->getVirtProxy();
100 PortProxy &vp = tc->getVirtProxy();
114 tc->getVirtProxy().readString(comm, task + name_off, sizeof(comm));
122 : tc(0), stack(64)
127 : tc(0), stack(64)
139 tc = _tc;
141 System *sys = tc
[all...]
/gem5/src/arch/power/
H A Dutility.cc63 getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) argument
70 skipFunction(ThreadContext *tc) argument
76 initCPU(ThreadContext *tc, int cpuId) argument
H A Dvtophys.cc42 PowerISA::vtophys(ThreadContext *tc, Addr addr) argument
/gem5/src/arch/generic/linux/
H A Dthreadinfo.hh45 ThreadContext *tc; member in class:Linux::ThreadInfo
61 data = tc->getVirtProxy().read<T>(addr, TheISA::GuestByteOrder);
68 : tc(_tc), sys(tc->getSystemPtr()), pcbb(_pcbb)
85 addr = tc->readMiscRegNoEffect(TheISA::CurThreadInfoReg);
87 PortProxy &p = tc->getPhysProxy();
106 return tc->getVirtProxy().read<Addr>(thread_info + offset);
115 return tc->getVirtProxy().read<int32_t>(task_struct + offset);
131 return tc->getVirtProxy().read<int32_t>(task_struct + offset);
149 return tc
[all...]
/gem5/src/sim/
H A Demul_driver.hh77 virtual int open(ThreadContext *tc, int mode, int flags) = 0;
86 virtual int ioctl(ThreadContext *tc, unsigned req) = 0;
95 virtual Addr mmap(ThreadContext *tc, Addr start, uint64_t length, argument
H A Dsyscall_emul.hh126 SyscallReturn unimplementedFunc(SyscallDesc *desc, int num, ThreadContext *tc);
132 SyscallReturn ignoreFunc(SyscallDesc *desc, int num, ThreadContext *tc);
135 SyscallReturn fallocateFunc(SyscallDesc *desc, int num, ThreadContext *tc);
138 SyscallReturn exitFunc(SyscallDesc *desc, int num, ThreadContext *tc);
141 SyscallReturn exitGroupFunc(SyscallDesc *desc, int num, ThreadContext *tc);
144 SyscallReturn setTidAddressFunc(SyscallDesc *desc, int num, ThreadContext *tc);
147 SyscallReturn getpagesizeFunc(SyscallDesc *desc, int num, ThreadContext *tc);
150 SyscallReturn brkFunc(SyscallDesc *desc, int num, ThreadContext *tc);
153 SyscallReturn closeFunc(SyscallDesc *desc, int num, ThreadContext *tc);
156 SyscallReturn lseekFunc(SyscallDesc *desc, int num, ThreadContext *tc);
334 futexFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
680 ioctlFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
759 openImpl(SyscallDesc *desc, int callnum, ThreadContext *tc, bool isopenat) argument
918 openFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
926 openatFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
934 unlinkatFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
948 faccessatFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
961 readlinkatFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
974 renameatFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1010 sysinfoFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1030 chmodFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1060 pollFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
1137 fchmodFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1159 mremapFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1239 statFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1269 stat64Func(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1303 fstatat64Func(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1340 fstat64Func(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1372 lstatFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1401 lstat64Func(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1435 fstatFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1463 statfsFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1495 cloneFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1635 fstatfsFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1661 readvFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1701 writevFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1738 mmapImpl(SyscallDesc *desc, int num, ThreadContext *tc, bool is_mmap2) argument
1916 pwrite64Func(SyscallDesc *desc, int num, ThreadContext *tc) argument
1941 mmapFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
1949 mmap2Func(SyscallDesc *desc, int num, ThreadContext *tc) argument
1957 getrlimitFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
1997 prlimitFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2040 clock_gettimeFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2060 clock_getresFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2078 gettimeofdayFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2098 utimesFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2132 execveFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2225 getrusageFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2277 timesFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2303 timeFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2323 tgkillFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2373 socketFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2393 socketpairFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2420 selectFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) argument
2616 readFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2647 writeFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2689 wait4Func(SyscallDesc *desc, int num, ThreadContext *tc) argument
2751 acceptFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
2822 eventfdFunc(SyscallDesc *desc, int num, ThreadContext *tc) argument
[all...]
/gem5/src/arch/arm/
H A Disa.cc409 ISA::startup(ThreadContext *tc) argument
411 pmu->setThreadContext(tc);
417 gicv3CpuInterface.reset(gicv3->getCPUInterface(tc->contextId()));
419 gicv3CpuInterface->setThreadContext(tc);
452 ISA::readMiscReg(int misc_reg, ThreadContext *tc)
460 pc = tc->pcState();
499 if (scr.ns && (cpsr.mode != MODE_MON) && ELIs32(tc, EL3)) {
514 return readMPIDR(system, tc);
552 tc->getSystemPtr()->cacheLineSize() / 4;
624 cpsr.nz = tc
[all...]
H A Dfaults.hh87 virtual Addr getVector(ThreadContext *tc);
88 Addr getVector64(ThreadContext *tc);
213 void invoke(ThreadContext *tc, const StaticInstPtr &inst =
215 void invoke64(ThreadContext *tc, const StaticInstPtr &inst =
217 void update(ThreadContext *tc);
222 virtual FaultOffset offset(ThreadContext *tc) = 0;
223 virtual FaultOffset offset64(ThreadContext *tc) = 0;
225 virtual bool routeToMonitor(ThreadContext *tc) const = 0;
226 virtual bool routeToHyp(ThreadContext *tc) const { return false; }
231 virtual bool abortDisable(ThreadContext *tc)
[all...]
/gem5/src/arch/riscv/
H A Disa.cc112 ISA::readMiscReg(int misc_reg, ThreadContext *tc) argument
116 return tc->contextId();
120 tc->getCpuPtr()->curCycle());
121 return tc->getCpuPtr()->curCycle();
138 tc->getCpuPtr()->totalInsts());
139 return tc->getCpuPtr()->totalInsts();
145 return tc->getCpuPtr()->getInterruptController(tc->threadId())
148 return tc->getCpuPtr()->getInterruptController(tc
180 setMiscReg(int misc_reg, RegVal val, ThreadContext *tc) argument
[all...]
H A Didle_event.hh44 virtual void process(ThreadContext *tc);
H A Dvtophys.hh56 vtophys(ThreadContext *tc, Addr vaddr) argument
/gem5/src/arch/x86/
H A Dsystem.cc63 X86ISA::installSegDesc(ThreadContext *tc, SegmentRegIndex seg, argument
100 tc->setMiscReg(MISCREG_SEG_BASE(seg), desc.base);
101 tc->setMiscReg(MISCREG_SEG_EFF_BASE(seg), honorBase ? desc.base : 0);
102 tc->setMiscReg(MISCREG_SEG_LIMIT(seg), desc.limit);
103 tc->setMiscReg(MISCREG_SEG_ATTR(seg), (RegVal)attr);
117 ThreadContext *tc = threadContexts[0]; local
176 tc->setMiscReg(MISCREG_CS, (RegVal)cs);
188 tc->setMiscReg(MISCREG_DS, (RegVal)ds);
189 tc->setMiscReg(MISCREG_ES, (RegVal)ds);
190 tc
[all...]
/gem5/src/systemc/ext/tlm_core/2/generic_payload/
H A Dendian_conv.hh238 tlm_endian_context *tc = txn->get_extension<tlm_endian_context>(); local
239 if (tc == 0) {
240 tc = global_tlm_endian_context_pool.pop();
241 txn->set_extension(tc);
243 return tc;
385 tlm_endian_context *tc = local
388 txn->get_streaming_width(), tc->stream_width, sizeof_databus,
389 tc->address, tc->new_address, txn->get_data_length(),
390 tc
403 tlm_endian_context *tc = establish_context(txn); local
621 tlm_endian_context *tc = local
663 tlm_endian_context *tc = establish_context(txn); local
810 tlm_endian_context *tc = txn->template get_extension<tlm_endian_context>(); local
842 tlm_endian_context *tc = establish_context(txn); local
915 tlm_endian_context *tc = establish_context(txn); local
935 tlm_endian_context *tc = txn->get_extension<tlm_endian_context>(); local
[all...]
/gem5/src/arch/sparc/
H A Dfaults.cc282 enterREDState(ThreadContext *tc) argument
286 HPSTATE hpstate= tc->readMiscRegNoEffect(MISCREG_HPSTATE);
289 tc->setMiscReg(MISCREG_HPSTATE, hpstate);
292 PSTATE pstate = tc->readMiscRegNoEffect(MISCREG_PSTATE);
294 tc->setMiscReg(MISCREG_PSTATE, pstate);
303 doREDFault(ThreadContext *tc, TrapType tt) argument
305 RegVal TL = tc->readMiscRegNoEffect(MISCREG_TL);
306 RegVal TSTATE = tc->readMiscRegNoEffect(MISCREG_TSTATE);
307 PSTATE pstate = tc->readMiscRegNoEffect(MISCREG_PSTATE);
308 HPSTATE hpstate = tc
382 doNormalFault(ThreadContext *tc, TrapType tt, bool gotoHpriv) argument
482 getHyperVector(ThreadContext * tc, Addr &PC, Addr &NPC, RegVal TT) argument
490 getPrivVector(ThreadContext *tc, Addr &PC, Addr &NPC, RegVal TT, RegVal TL) argument
500 invoke(ThreadContext * tc, const StaticInstPtr &inst) argument
561 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument
624 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument
680 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument
767 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument
786 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument
805 invoke(ThreadContext *tc, const StaticInstPtr &inst) argument
[all...]
/gem5/src/kern/
H A Dsystem_events.hh44 virtual void process(ThreadContext *tc);
/gem5/src/arch/mips/
H A Didle_event.hh44 virtual void process(ThreadContext *tc);
H A Dvtophys.cc54 MipsISA::vtophys(ThreadContext *tc, Addr addr) argument
H A Dutility.hh56 uint64_t getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp);
75 inUserMode(ThreadContext *tc) argument
77 RegVal Stat = tc->readMiscReg(MISCREG_STATUS);
78 RegVal Dbg = tc->readMiscReg(MISCREG_DEBUG);
109 void startupCPU(ThreadContext *tc, int cpuId);
110 void initCPU(ThreadContext *tc, int cpuId);
115 void skipFunction(ThreadContext *tc);
124 getExecutingAsid(ThreadContext *tc) argument
/gem5/src/arch/arm/tracers/
H A Dtarmac_tracer.cc76 TarmacTracer::getInstRecord(Tick when, ThreadContext *tc, argument
86 if (ArmSystem::highestELIs64(tc)) {
88 return new TarmacTracerRecordV8(when, tc, staticInst, pc, *this,
92 return new TarmacTracerRecord(when, tc, staticInst, pc, *this,
/gem5/src/dev/arm/
H A Dbase_gic.cc91 ArmSPIGen::get(ThreadContext* tc) argument
102 ArmPPIGen::get(ThreadContext* tc) argument
104 panic_if(!tc, "Invalid Thread Context\n");
105 ContextID cid = tc->contextId();
115 ArmPPI *pin = new ArmPPI(p->platform, tc, p->num);
124 Platform *_platform, ThreadContext *tc, uint32_t int_num)
125 : threadContext(tc), platform(dynamic_cast<RealView*>(_platform)),
132 ArmInterruptPin::setThreadContext(ThreadContext *tc) argument
137 threadContext = tc;
167 Platform *_platform, ThreadContext *tc, uint32_
123 ArmInterruptPin( Platform *_platform, ThreadContext *tc, uint32_t int_num) argument
166 ArmPPI( Platform *_platform, ThreadContext *tc, uint32_t int_num) argument
[all...]
/gem5/src/arch/alpha/freebsd/
H A Dsystem.hh48 virtual void process(ThreadContext *tc);
59 void doCalibrateClocks(ThreadContext *tc);
/gem5/src/kern/linux/
H A Dlinux.cc43 ThreadContext *tc)
47 curTick(), tc->getCpuPtr()->name(), path.c_str());
53 data = Linux::procMeminfo(process, tc);
56 data = Linux::etcPasswd(process, tc);
77 Linux::procMeminfo(Process *process, ThreadContext *tc) argument
85 Linux::etcPasswd(Process *process, ThreadContext *tc) argument
42 openSpecialFile(std::string path, Process *process, ThreadContext *tc) argument

Completed in 38 milliseconds

1234567891011>>