Lines Matching defs:tc
177 ThreadContext *tc = system->getThreadContext(contextIds[0]);
179 setSyscallArg(tc, 0, argc);
180 setSyscallArg(tc, 1, argv_array_base);
181 tc->setIntReg(StackPointerReg, memState->getStackMin());
183 tc->pcState(getStartPC());
189 ThreadContext *tc = system->getThreadContext(contextIds[0]);
190 tc->setMiscRegNoEffect(IPR_DTB_ASN, _pid << 57);
215 ThreadContext *tc = system->getThreadContext(contextIds[0]);
216 tc->setIntReg(GlobalPointerReg, objFile->globalPointer());
218 tc->setMiscRegNoEffect(IPR_ICM, mode_user << 3);
219 tc->setMiscRegNoEffect(IPR_DTB_CM, mode_user << 3);
221 tc->setMiscRegNoEffect(IPR_MCSR, 0);
225 AlphaProcess::getSyscallArg(ThreadContext *tc, int &i)
228 return tc->readIntReg(FirstArgumentReg + i++);
232 AlphaProcess::setSyscallArg(ThreadContext *tc, int i, RegVal val)
235 tc->setIntReg(FirstArgumentReg + i, val);
239 AlphaProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret)
246 tc->setIntReg(SyscallSuccessReg, 0);
247 tc->setIntReg(ReturnValueReg, sysret.returnValue());
250 tc->setIntReg(SyscallSuccessReg, (RegVal)-1);
251 tc->setIntReg(ReturnValueReg, sysret.errnoValue());