Lines Matching refs:context
170 return context()->getProcessPtr()->pTable->lookup(va) != nullptr;
175 RemoteGDB::SPARCGdbRegCache::getRegs(ThreadContext *context)
178 for (int i = 0; i < 32; i++) r.gpr[i] = htobe((uint32_t)context->readIntReg(i));
179 PCState pc = context->pcState();
182 r.y = htobe((uint32_t)context->readIntReg(NumIntArchRegs + 1));
183 PSTATE pstate = context->readMiscReg(MISCREG_PSTATE);
185 r.fsr = htobe((uint32_t)context->readMiscReg(MISCREG_FSR));
186 r.csr = htobe((uint32_t)context->readIntReg(NumIntArchRegs + 2));
190 RemoteGDB::SPARC64GdbRegCache::getRegs(ThreadContext *context)
193 for (int i = 0; i < 32; i++) r.gpr[i] = htobe(context->readIntReg(i));
195 PCState pc = context->pcState();
198 r.fsr = htobe(context->readMiscReg(MISCREG_FSR));
199 r.fprs = htobe(context->readMiscReg(MISCREG_FPRS));
200 r.y = htobe(context->readIntReg(NumIntArchRegs + 1));
201 PSTATE pstate = context->readMiscReg(MISCREG_PSTATE);
203 context->readMiscReg(MISCREG_CWP) |
205 context->readMiscReg(MISCREG_ASI) << 24 |
206 context->readIntReg(NumIntArchRegs + 2) << 32);
210 RemoteGDB::SPARCGdbRegCache::setRegs(ThreadContext *context) const
212 for (int i = 0; i < 32; i++) context->setIntReg(i, r.gpr[i]);
219 context->pcState(pc);
226 RemoteGDB::SPARC64GdbRegCache::setRegs(ThreadContext *context) const
228 for (int i = 0; i < 32; i++) context->setIntReg(i, r.gpr[i]);
235 context->pcState(pc);
245 PSTATE pstate = context()->readMiscReg(MISCREG_PSTATE);