Lines Matching defs:tc
247 ThreadContext *tc = system->getThreadContext(contextIds[0]);
248 tc->setIntReg(StackPointerReg, memState->getStackMin());
249 tc->pcState(getStartPC());
255 RiscvProcess::getSyscallArg(ThreadContext *tc, int &i)
261 retval = tc->readIntReg(SyscallArgumentRegs[i]);
267 RiscvProcess::setSyscallArg(ThreadContext *tc, int i, RegVal val)
269 tc->setIntReg(SyscallArgumentRegs[i], val);
273 RiscvProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret)
277 tc->setIntReg(SyscallPseudoReturnReg, sysret.returnValue());
280 tc->setIntReg(SyscallPseudoReturnReg, sysret.encodedValue());