Lines Matching refs:regs
52 struct vki_user_regs_struct regs;
53 VG_(memset)(®s, 0, sizeof(regs));
54 regs.cs = vex->guest_CS;
55 regs.ss = vex->guest_SS;
56 regs.ds = vex->guest_DS;
57 regs.es = vex->guest_ES;
58 regs.fs = vex->guest_FS;
59 regs.gs = vex->guest_GS;
60 regs.eax = vex->guest_EAX;
61 regs.ebx = vex->guest_EBX;
62 regs.ecx = vex->guest_ECX;
63 regs.edx = vex->guest_EDX;
64 regs.esi = vex->guest_ESI;
65 regs.edi = vex->guest_EDI;
66 regs.ebp = vex->guest_EBP;
67 regs.esp = vex->guest_ESP;
68 regs.eflags = LibVEX_GuestX86_get_eflags(vex);
69 regs.eip = vex->guest_EIP;
70 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s);
73 struct vki_user_regs_struct regs;
74 VG_(memset)(®s, 0, sizeof(regs));
75 regs.rax = vex->guest_RAX;
76 regs.rbx = vex->guest_RBX;
77 regs.rcx = vex->guest_RCX;
78 regs.rdx = vex->guest_RDX;
79 regs.rsi = vex->guest_RSI;
80 regs.rdi = vex->guest_RDI;
81 regs.rbp = vex->guest_RBP;
82 regs.rsp = vex->guest_RSP;
83 regs.r8 = vex->guest_R8;
84 regs.r9 = vex->guest_R9;
85 regs.r10 = vex->guest_R10;
86 regs.r11 = vex->guest_R11;
87 regs.r12 = vex->guest_R12;
88 regs.r13 = vex->guest_R13;
89 regs.r14 = vex->guest_R14;
90 regs.r15 = vex->guest_R15;
91 regs.eflags = LibVEX_GuestAMD64_get_rflags(vex);
92 regs.rip = vex->guest_RIP;
100 regs.cs = 3;
101 regs.ds = 0;
102 regs.es = 0;
103 regs.fs = 0;
104 regs.ss = 3;
105 regs.gs = 0;
106 regs.fs_base = 0;
107 regs.gs_base = 0;
108 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s);
239 uregs.regs[0] = vex->guest_X0;
240 uregs.regs[1] = vex->guest_X1;
241 uregs.regs[2] = vex->guest_X2;
242 uregs.regs[3] = vex->guest_X3;
243 uregs.regs[4] = vex->guest_X4;
244 uregs.regs[5] = vex->guest_X5;
245 uregs.regs[6] = vex->guest_X6;
246 uregs.regs[7] = vex->guest_X7;
247 uregs.regs[8] = vex->guest_X8;
248 uregs.regs[9] = vex->guest_X9;
249 uregs.regs[10] = vex->guest_X10;
250 uregs.regs[11] = vex->guest_X11;
251 uregs.regs[12] = vex->guest_X12;
252 uregs.regs[13] = vex->guest_X13;
253 uregs.regs[14] = vex->guest_X14;
254 uregs.regs[15] = vex->guest_X15;
255 uregs.regs[16] = vex->guest_X16;
256 uregs.regs[17] = vex->guest_X17;
257 uregs.regs[18] = vex->guest_X18;
258 uregs.regs[19] = vex->guest_X19;
259 uregs.regs[20] = vex->guest_X20;
260 uregs.regs[21] = vex->guest_X21;
261 uregs.regs[22] = vex->guest_X22;
262 uregs.regs[23] = vex->guest_X23;
263 uregs.regs[24] = vex->guest_X24;
264 uregs.regs[25] = vex->guest_X25;
265 uregs.regs[26] = vex->guest_X26;
266 uregs.regs[27] = vex->guest_X27;
267 uregs.regs[28] = vex->guest_X28;
268 uregs.regs[29] = vex->guest_X29;
269 uregs.regs[30] = vex->guest_X30;
282 struct vki_user_regs_struct regs;
286 pa.vki_len = (unsigned long) ®s.per_info - (unsigned long) ®s.psw.addr;
287 pa.vki_process_addr = (unsigned long) ®s.psw.addr;
290 VG_(memset)(®s, 0, sizeof(regs));
291 regs.psw.addr = vex->guest_IA;
294 regs.gprs[0] = vex->guest_r0;
295 regs.gprs[1] = vex->guest_r1;
296 regs.gprs[2] = vex->guest_r2;
297 regs.gprs[3] = vex->guest_r3;
298 regs.gprs[4] = vex->guest_r4;
299 regs.gprs[5] = vex->guest_r5;
300 regs.gprs[6] = vex->guest_r6;
301 regs.gprs[7] = vex->guest_r7;
302 regs.gprs[8] = vex->guest_r8;
303 regs.gprs[9] = vex->guest_r9;
304 regs.gprs[10] = vex->guest_r10;
305 regs.gprs[11] = vex->guest_r11;
306 regs.gprs[12] = vex->guest_r12;
307 regs.gprs[13] = vex->guest_r13;
308 regs.gprs[14] = vex->guest_r14;
309 regs.gprs[15] = vex->guest_r15;
311 regs.acrs[0] = vex->guest_a0;
312 regs.acrs[1] = vex->guest_a1;
313 regs.acrs[2] = vex->guest_a2;
314 regs.acrs[3] = vex->guest_a3;
315 regs.acrs[4] = vex->guest_a4;
316 regs.acrs[5] = vex->guest_a5;
317 regs.acrs[6] = vex->guest_a6;
318 regs.acrs[7] = vex->guest_a7;
319 regs.acrs[8] = vex->guest_a8;
320 regs.acrs[9] = vex->guest_a9;
321 regs.acrs[10] = vex->guest_a10;
322 regs.acrs[11] = vex->guest_a11;
323 regs.acrs[12] = vex->guest_a12;
324 regs.acrs[13] = vex->guest_a13;
325 regs.acrs[14] = vex->guest_a14;
326 regs.acrs[15] = vex->guest_a15;
329 regs.orig_gpr2 = vex->guest_r2;
331 regs.fp_regs.fprs[0].ui = vex->guest_f0;
332 regs.fp_regs.fprs[1].ui = vex->guest_f1;
333 regs.fp_regs.fprs[2].ui = vex->guest_f2;
334 regs.fp_regs.fprs[3].ui = vex->guest_f3;
335 regs.fp_regs.fprs[4].ui = vex->guest_f4;
336 regs.fp_regs.fprs[5].ui = vex->guest_f5;
337 regs.fp_regs.fprs[6].ui = vex->guest_f6;
338 regs.fp_regs.fprs[7].ui = vex->guest_f7;
339 regs.fp_regs.fprs[8].ui = vex->guest_f8;
340 regs.fp_regs.fprs[9].ui = vex->guest_f9;
341 regs.fp_regs.fprs[10].ui = vex->guest_f10;
342 regs.fp_regs.fprs[11].ui = vex->guest_f11;
343 regs.fp_regs.fprs[12].ui = vex->guest_f12;
344 regs.fp_regs.fprs[13].ui = vex->guest_f13;
345 regs.fp_regs.fprs[14].ui = vex->guest_f14;
346 regs.fp_regs.fprs[15].ui = vex->guest_f15;
347 regs.fp_regs.fpc = vex->guest_fpc;
352 struct vki_user_regs_struct regs;
353 VG_(memset)(®s, 0, sizeof(regs));
354 regs.MIPS_r0 = vex->guest_r0;
355 regs.MIPS_r1 = vex->guest_r1;
356 regs.MIPS_r2 = vex->guest_r2;
357 regs.MIPS_r3 = vex->guest_r3;
358 regs.MIPS_r4 = vex->guest_r4;
359 regs.MIPS_r5 = vex->guest_r5;
360 regs.MIPS_r6 = vex->guest_r6;
361 regs.MIPS_r7 = vex->guest_r7;
362 regs.MIPS_r8 = vex->guest_r8;
363 regs.MIPS_r9 = vex->guest_r9;
364 regs.MIPS_r10 = vex->guest_r10;
365 regs.MIPS_r11 = vex->guest_r11;
366 regs.MIPS_r12 = vex->guest_r12;
367 regs.MIPS_r13 = vex->guest_r13;
368 regs.MIPS_r14 = vex->guest_r14;
369 regs.MIPS_r15 = vex->guest_r15;
370 regs.MIPS_r16 = vex->guest_r16;
371 regs.MIPS_r17 = vex->guest_r17;
372 regs.MIPS_r18 = vex->guest_r18;
373 regs.MIPS_r19 = vex->guest_r19;
374 regs.MIPS_r20 = vex->guest_r20;
375 regs.MIPS_r21 = vex->guest_r21;
376 regs.MIPS_r22 = vex->guest_r22;
377 regs.MIPS_r23 = vex->guest_r23;
378 regs.MIPS_r24 = vex->guest_r24;
379 regs.MIPS_r25 = vex->guest_r25;
380 regs.MIPS_r26 = vex->guest_r26;
381 regs.MIPS_r27 = vex->guest_r27;
382 regs.MIPS_r28 = vex->guest_r28;
383 regs.MIPS_r29 = vex->guest_r29;
384 regs.MIPS_r30 = vex->guest_r30;
385 regs.MIPS_r31 = vex->guest_r31;
386 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s);
389 struct vki_user_regs_struct regs;
390 VG_(memset)(®s, 0, sizeof(regs));
391 regs.TILEGX_r0 = vex->guest_r0;
392 regs.TILEGX_r1 = vex->guest_r1;
393 regs.TILEGX_r2 = vex->guest_r2;
394 regs.TILEGX_r3 = vex->guest_r3;
395 regs.TILEGX_r4 = vex->guest_r4;
396 regs.TILEGX_r5 = vex->guest_r5;
397 regs.TILEGX_r6 = vex->guest_r6;
398 regs.TILEGX_r7 = vex->guest_r7;
399 regs.TILEGX_r8 = vex->guest_r8;
400 regs.TILEGX_r9 = vex->guest_r9;
401 regs.TILEGX_r10 = vex->guest_r10;
402 regs.TILEGX_r11 = vex->guest_r11;
403 regs.TILEGX_r12 = vex->guest_r12;
404 regs.TILEGX_r13 = vex->guest_r13;
405 regs.TILEGX_r14 = vex->guest_r14;
406 regs.TILEGX_r15 = vex->guest_r15;
407 regs.TILEGX_r16 = vex->guest_r16;
408 regs.TILEGX_r17 = vex->guest_r17;
409 regs.TILEGX_r18 = vex->guest_r18;
410 regs.TILEGX_r19 = vex->guest_r19;
411 regs.TILEGX_r20 = vex->guest_r20;
412 regs.TILEGX_r21 = vex->guest_r21;
413 regs.TILEGX_r22 = vex->guest_r22;
414 regs.TILEGX_r23 = vex->guest_r23;
415 regs.TILEGX_r24 = vex->guest_r24;
416 regs.TILEGX_r25 = vex->guest_r25;
417 regs.TILEGX_r26 = vex->guest_r26;
418 regs.TILEGX_r27 = vex->guest_r27;
419 regs.TILEGX_r28 = vex->guest_r28;
420 regs.TILEGX_r29 = vex->guest_r29;
421 regs.TILEGX_r30 = vex->guest_r30;
422 regs.TILEGX_r31 = vex->guest_r31;
423 regs.TILEGX_r32 = vex->guest_r32;
424 regs.TILEGX_r33 = vex->guest_r33;
425 regs.TILEGX_r34 = vex->guest_r34;
426 regs.TILEGX_r35 = vex->guest_r35;
427 regs.TILEGX_r36 = vex->guest_r36;
428 regs.TILEGX_r37 = vex->guest_r37;
429 regs.TILEGX_r38 = vex->guest_r38;
430 regs.TILEGX_r39 = vex->guest_r39;
431 regs.TILEGX_r40 = vex->guest_r40;
432 regs.TILEGX_r41 = vex->guest_r41;
433 regs.TILEGX_r42 = vex->guest_r42;
434 regs.TILEGX_r43 = vex->guest_r43;
435 regs.TILEGX_r44 = vex->guest_r44;
436 regs.TILEGX_r45 = vex->guest_r45;
437 regs.TILEGX_r46 = vex->guest_r46;
438 regs.TILEGX_r47 = vex->guest_r47;
439 regs.TILEGX_r48 = vex->guest_r48;
440 regs.TILEGX_r49 = vex->guest_r49;
441 regs.TILEGX_r50 = vex->guest_r50;
442 regs.TILEGX_r51 = vex->guest_r51;
443 regs.TILEGX_r52 = vex->guest_r52;
444 regs.TILEGX_r53 = vex->guest_r53;
445 regs.TILEGX_r54 = vex->guest_r54;
446 regs.TILEGX_r55 = vex->guest_r55;
447 regs.TILEGX_pc = vex->guest_pc;
449 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s);