Lines Matching refs:uregs

210    struct vki_user_regs_struct uregs;  in ptrace_setregs()
211 VG_(memset)(&uregs, 0, sizeof(uregs)); in ptrace_setregs()
212 uregs.ARM_r0 = vex->guest_R0; in ptrace_setregs()
213 uregs.ARM_r1 = vex->guest_R1; in ptrace_setregs()
214 uregs.ARM_r2 = vex->guest_R2; in ptrace_setregs()
215 uregs.ARM_r3 = vex->guest_R3; in ptrace_setregs()
216 uregs.ARM_r4 = vex->guest_R4; in ptrace_setregs()
217 uregs.ARM_r5 = vex->guest_R5; in ptrace_setregs()
218 uregs.ARM_r6 = vex->guest_R6; in ptrace_setregs()
219 uregs.ARM_r7 = vex->guest_R7; in ptrace_setregs()
220 uregs.ARM_r8 = vex->guest_R8; in ptrace_setregs()
221 uregs.ARM_r9 = vex->guest_R9; in ptrace_setregs()
222 uregs.ARM_r10 = vex->guest_R10; in ptrace_setregs()
223 uregs.ARM_fp = vex->guest_R11; in ptrace_setregs()
224 uregs.ARM_ip = vex->guest_R12; in ptrace_setregs()
225 uregs.ARM_sp = vex->guest_R13; in ptrace_setregs()
226 uregs.ARM_lr = vex->guest_R14; in ptrace_setregs()
230 uregs.ARM_pc = vex->guest_R15T & 0xFFFFFFFE; in ptrace_setregs()
231 uregs.ARM_cpsr = LibVEX_GuestARM_get_cpsr(vex); in ptrace_setregs()
232 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &uregs); in ptrace_setregs()
237 struct vki_user_pt_regs uregs; in ptrace_setregs()
238 VG_(memset)(&uregs, 0, sizeof(uregs)); in ptrace_setregs()
239 uregs.regs[0] = vex->guest_X0; in ptrace_setregs()
240 uregs.regs[1] = vex->guest_X1; in ptrace_setregs()
241 uregs.regs[2] = vex->guest_X2; in ptrace_setregs()
242 uregs.regs[3] = vex->guest_X3; in ptrace_setregs()
243 uregs.regs[4] = vex->guest_X4; in ptrace_setregs()
244 uregs.regs[5] = vex->guest_X5; in ptrace_setregs()
245 uregs.regs[6] = vex->guest_X6; in ptrace_setregs()
246 uregs.regs[7] = vex->guest_X7; in ptrace_setregs()
247 uregs.regs[8] = vex->guest_X8; in ptrace_setregs()
248 uregs.regs[9] = vex->guest_X9; in ptrace_setregs()
249 uregs.regs[10] = vex->guest_X10; in ptrace_setregs()
250 uregs.regs[11] = vex->guest_X11; in ptrace_setregs()
251 uregs.regs[12] = vex->guest_X12; in ptrace_setregs()
252 uregs.regs[13] = vex->guest_X13; in ptrace_setregs()
253 uregs.regs[14] = vex->guest_X14; in ptrace_setregs()
254 uregs.regs[15] = vex->guest_X15; in ptrace_setregs()
255 uregs.regs[16] = vex->guest_X16; in ptrace_setregs()
256 uregs.regs[17] = vex->guest_X17; in ptrace_setregs()
257 uregs.regs[18] = vex->guest_X18; in ptrace_setregs()
258 uregs.regs[19] = vex->guest_X19; in ptrace_setregs()
259 uregs.regs[20] = vex->guest_X20; in ptrace_setregs()
260 uregs.regs[21] = vex->guest_X21; in ptrace_setregs()
261 uregs.regs[22] = vex->guest_X22; in ptrace_setregs()
262 uregs.regs[23] = vex->guest_X23; in ptrace_setregs()
263 uregs.regs[24] = vex->guest_X24; in ptrace_setregs()
264 uregs.regs[25] = vex->guest_X25; in ptrace_setregs()
265 uregs.regs[26] = vex->guest_X26; in ptrace_setregs()
266 uregs.regs[27] = vex->guest_X27; in ptrace_setregs()
267 uregs.regs[28] = vex->guest_X28; in ptrace_setregs()
268 uregs.regs[29] = vex->guest_X29; in ptrace_setregs()
269 uregs.regs[30] = vex->guest_X30; in ptrace_setregs()
270 uregs.sp = vex->guest_XSP; in ptrace_setregs()
271 uregs.pc = vex->guest_PC; in ptrace_setregs()
272 uregs.pstate = LibVEX_GuestARM64_get_nzcv(vex); /* is this correct? */ in ptrace_setregs()
273 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &uregs); in ptrace_setregs()