Lines Matching refs:tc
94 unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
97 auto process = tc->getProcessPtr();
98 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
106 name.copyOut(tc->getVirtProxy());
112 archPrctlFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
124 auto process = tc->getProcessPtr();
125 int code = process->getSyscallArg(tc, index);
126 uint64_t addr = process->getSyscallArg(tc, index);
128 PortProxy &p = tc->getVirtProxy();
133 tc->setMiscRegNoEffect(MISCREG_FS_BASE, addr);
134 tc->setMiscRegNoEffect(MISCREG_FS_EFF_BASE, addr);
137 fsBase = tc->readMiscRegNoEffect(MISCREG_FS_BASE);
141 tc->setMiscRegNoEffect(MISCREG_GS_BASE, addr);
142 tc->setMiscRegNoEffect(MISCREG_GS_EFF_BASE, addr);
145 gsBase = tc->readMiscRegNoEffect(MISCREG_GS_BASE);
178 setThreadArea32Func(SyscallDesc *desc, int callnum, ThreadContext *tc)
184 auto process = tc->getProcessPtr();
192 TypedBufferArg<UserDesc32> userDesc(process->getSyscallArg(tc, argIndex));
197 if (!userDesc.copyIn(tc->getVirtProxy()))
200 if (!gdt.copyIn(tc->getVirtProxy()))
252 if (!userDesc.copyOut(tc->getVirtProxy()))
254 if (!gdt.copyOut(tc->getVirtProxy()))