/external/valgrind/coregrind/m_sigframe/ |
D | sigframe-tilegx-linux.c | 79 sc->gregs[0] = tst->arch.vex.guest_r0; in setup_sigcontext2() 80 sc->gregs[1] = tst->arch.vex.guest_r1; in setup_sigcontext2() 81 sc->gregs[2] = tst->arch.vex.guest_r2; in setup_sigcontext2() 82 sc->gregs[3] = tst->arch.vex.guest_r3; in setup_sigcontext2() 83 sc->gregs[4] = tst->arch.vex.guest_r4; in setup_sigcontext2() 84 sc->gregs[5] = tst->arch.vex.guest_r5; in setup_sigcontext2() 85 sc->gregs[6] = tst->arch.vex.guest_r6; in setup_sigcontext2() 86 sc->gregs[7] = tst->arch.vex.guest_r7; in setup_sigcontext2() 87 sc->gregs[8] = tst->arch.vex.guest_r8; in setup_sigcontext2() 88 sc->gregs[9] = tst->arch.vex.guest_r9; in setup_sigcontext2() [all …]
|
D | sigframe-mips32-linux.c | 86 sc->sc_regs[1] = tst->arch.vex.guest_r1; in setup_sigcontext2() 87 sc->sc_regs[2] = tst->arch.vex.guest_r2; in setup_sigcontext2() 88 sc->sc_regs[3] = tst->arch.vex.guest_r3; in setup_sigcontext2() 89 sc->sc_regs[4] = tst->arch.vex.guest_r4; in setup_sigcontext2() 90 sc->sc_regs[5] = tst->arch.vex.guest_r5; in setup_sigcontext2() 91 sc->sc_regs[6] = tst->arch.vex.guest_r6; in setup_sigcontext2() 92 sc->sc_regs[7] = tst->arch.vex.guest_r7; in setup_sigcontext2() 93 sc->sc_regs[8] = tst->arch.vex.guest_r8; in setup_sigcontext2() 94 sc->sc_regs[9] = tst->arch.vex.guest_r9; in setup_sigcontext2() 95 sc->sc_regs[10] = tst->arch.vex.guest_r10; in setup_sigcontext2() [all …]
|
D | sigframe-mips64-linux.c | 81 sc->sc_regs[1] = tst->arch.vex.guest_r1; in setup_sigcontext() 82 sc->sc_regs[2] = tst->arch.vex.guest_r2; in setup_sigcontext() 83 sc->sc_regs[3] = tst->arch.vex.guest_r3; in setup_sigcontext() 84 sc->sc_regs[4] = tst->arch.vex.guest_r4; in setup_sigcontext() 85 sc->sc_regs[5] = tst->arch.vex.guest_r5; in setup_sigcontext() 86 sc->sc_regs[6] = tst->arch.vex.guest_r6; in setup_sigcontext() 87 sc->sc_regs[7] = tst->arch.vex.guest_r7; in setup_sigcontext() 88 sc->sc_regs[8] = tst->arch.vex.guest_r8; in setup_sigcontext() 89 sc->sc_regs[9] = tst->arch.vex.guest_r9; in setup_sigcontext() 90 sc->sc_regs[10] = tst->arch.vex.guest_r10; in setup_sigcontext() [all …]
|
D | sigframe-s390x-linux.c | 65 do { zztst->arch.vex.guest_r##zzn = (unsigned long)(zzval); \ 106 VexGuestS390XState vex; member 147 sigregs->regs.gprs[0] = tst->arch.vex.guest_r0; in save_sigregs() 148 sigregs->regs.gprs[1] = tst->arch.vex.guest_r1; in save_sigregs() 149 sigregs->regs.gprs[2] = tst->arch.vex.guest_r2; in save_sigregs() 150 sigregs->regs.gprs[3] = tst->arch.vex.guest_r3; in save_sigregs() 151 sigregs->regs.gprs[4] = tst->arch.vex.guest_r4; in save_sigregs() 152 sigregs->regs.gprs[5] = tst->arch.vex.guest_r5; in save_sigregs() 153 sigregs->regs.gprs[6] = tst->arch.vex.guest_r6; in save_sigregs() 154 sigregs->regs.gprs[7] = tst->arch.vex.guest_r7; in save_sigregs() [all …]
|
D | sigframe-amd64-linux.c | 103 VexGuestAMD64State vex; member 344 # define SC2(reg,REG) sc->reg = tst->arch.vex.guest_##REG in synth_ucontext() 363 sc->eflags = LibVEX_GuestAMD64_get_rflags(&tst->arch.vex); in synth_ucontext() 388 frame->vex = tst->arch.vex; in build_vg_sigframe() 439 = (void*)tst->arch.vex.guest_RIP; in build_rt_sigframe() 477 tst->arch.vex.guest_RIP = (Addr) handler; in VG_() 478 tst->arch.vex.guest_RDI = (ULong) siginfo->si_signo; in VG_() 479 tst->arch.vex.guest_RSI = (Addr) &frame->sigInfo; in VG_() 480 tst->arch.vex.guest_RDX = (Addr) &frame->uContext; in VG_() 497 rsp, tst->arch.vex.guest_RIP, (Int)tst->status); in VG_() [all …]
|
D | sigframe-x86-linux.c | 108 VexGuestX86State vex; member 367 # define SC2(reg,REG) sc->reg = tst->arch.vex.guest_##REG in synth_ucontext() 384 sc->eflags = LibVEX_GuestX86_get_eflags(&tst->arch.vex); in synth_ucontext() 407 frame->vex = tst->arch.vex; in build_vg_sigframe() 522 = (void*)tst->arch.vex.guest_EIP; in build_rt_sigframe() 563 tst->arch.vex.guest_EIP = (Addr) handler; in VG_() 570 esp, tst->arch.vex.guest_EIP, (Int)tst->status); in VG_() 599 tst->arch.vex = frame->vex; in restore_vg_sigframe() 610 tst->arch.vex.guest_EAX = sc->eax; in restore_sigcontext() 611 tst->arch.vex.guest_ECX = sc->ecx; in restore_sigcontext() [all …]
|
D | sigframe-ppc64-linux.c | 120 do { tst->arch.vex.guest_LR = (zzval); \ 127 do { tst->arch.vex.guest_GPR##zzn = (zzval); \ 182 *(Addr *)sp = tst->arch.vex.guest_GPR1; in VG_() 204 = tst->arch.vex.guest_GPR##gpr in VG_() 211 frame->uc.uc_mcontext.gp_regs[VKI_PT_NIP] = tst->arch.vex.guest_CIA; in VG_() 217 frame->uc.uc_mcontext.gp_regs[VKI_PT_ORIG_R3] = tst->arch.vex.guest_GPR3; in VG_() 218 frame->uc.uc_mcontext.gp_regs[VKI_PT_CTR] = tst->arch.vex.guest_CTR; in VG_() 219 frame->uc.uc_mcontext.gp_regs[VKI_PT_LNK] = tst->arch.vex.guest_LR; in VG_() 221 &tst->arch.vex); in VG_() 223 &tst->arch.vex); in VG_() [all …]
|
D | sigframe-arm64-linux.c | 64 VexGuestARM64State vex; member 96 # define SC2(reg) sc->regs[reg] = tst->arch.vex.guest_X##reg in synth_ucontext() 106 sc->sp = tst->arch.vex.guest_XSP; in synth_ucontext() 107 sc->pc = tst->arch.vex.guest_PC; in synth_ucontext() 147 priv->vex = tst->arch.vex; in build_sigframe() 190 = (Addr*)(tst)->arch.vex.guest_PC; in VG_() 197 tst->arch.vex.guest_X1 = (Addr)&rsf->info; in VG_() 198 tst->arch.vex.guest_X2 = (Addr)&rsf->sig.uc; in VG_() 203 tst->arch.vex.guest_X0 = sigNo; in VG_() 206 tst->arch.vex.guest_X30 = (Addr)restorer; in VG_() [all …]
|
D | sigframe-ppc32-linux.c | 122 do { tst->arch.vex.guest_LR = (zzval); \ 129 do { tst->arch.vex.guest_GPR##zzn = (zzval); \ 145 # define DO(gpr) mc->mc_gregs[VKI_PT_R0+gpr] = tst->arch.vex.guest_GPR##gpr in stack_mcontext() 152 mc->mc_gregs[VKI_PT_NIP] = tst->arch.vex.guest_CIA; in stack_mcontext() 154 mc->mc_gregs[VKI_PT_ORIG_R3] = tst->arch.vex.guest_GPR3; in stack_mcontext() 155 mc->mc_gregs[VKI_PT_CTR] = tst->arch.vex.guest_CTR; in stack_mcontext() 156 mc->mc_gregs[VKI_PT_LNK] = tst->arch.vex.guest_LR; in stack_mcontext() 157 mc->mc_gregs[VKI_PT_XER] = LibVEX_GuestPPC32_get_XER(&tst->arch.vex); in stack_mcontext() 158 mc->mc_gregs[VKI_PT_CCR] = LibVEX_GuestPPC32_get_CR(&tst->arch.vex); in stack_mcontext() 661 *(Addr *)sp = tst->arch.vex.guest_GPR1; in VG_() [all …]
|
D | sigframe-arm-linux.c | 67 VexGuestARMState vex; member 98 # define SC2(reg,REG) sc->arm_##reg = tst->arch.vex.guest_##REG in synth_ucontext() 154 priv->vex = tst->arch.vex; in build_sigframe() 203 rsf->info._sifields._sigfault._addr = (Addr *) (tst)->arch.vex.guest_R12; /* IP */ in VG_() 210 tst->arch.vex.guest_R1 = (Addr)&rsf->info; in VG_() 211 tst->arch.vex.guest_R2 = (Addr)&rsf->sig.uc; in VG_() 221 tst->arch.vex.guest_R0 = sigNo; in VG_() 224 tst->arch.vex.guest_R14 = (Addr)restorer; in VG_() 226 tst->arch.vex.guest_R14 in VG_() 231 tst->arch.vex.guest_R15T = (Addr) handler; /* R15 == PC */ in VG_() [all …]
|
D | sigframe-amd64-darwin.c | 65 VexGuestAMD64State vex; member 92 # define SC2(reg,REG) uc->__mcontext_data.__ss.reg = tst->arch.vex.guest_##REG in synthesize_ucontext() 110 uc->__mcontext_data.__ss.__rflags = LibVEX_GuestAMD64_get_rflags(&tst->arch.vex); in synthesize_ucontext() 120 # define SC2(REG,reg) tst->arch.vex.guest_##REG = uc->__mcontext_data.__ss.reg in restore_from_ucontext() 179 VG_(memset)(&frame->vex, 0, sizeof(VexGuestAMD64State)); in VG_() 186 frame->vex = tst->arch.vex; in VG_() 212 tst->arch.vex.guest_RDI = (ULong) sigNo; in VG_() 213 tst->arch.vex.guest_RSI = (Addr) &frame->fake_siginfo; in VG_() 214 tst->arch.vex.guest_RDX = (Addr) &frame->fake_ucontext; in VG_() 257 tst->arch.vex = frame->vex; in VG_() [all …]
|
D | sigframe-x86-darwin.c | 68 VexGuestX86State vex; member 96 # define SC2(reg,REG) uc->__mcontext_data.__ss.reg = tst->arch.vex.guest_##REG in synthesize_ucontext() 106 uc->__mcontext_data.__ss.__eflags = LibVEX_GuestX86_get_eflags(&tst->arch.vex); in synthesize_ucontext() 116 # define SC2(REG,reg) tst->arch.vex.guest_##REG = uc->__mcontext_data.__ss.reg in restore_from_ucontext() 167 VG_(memset)(&frame->vex, 0, sizeof(VexGuestX86State)); in VG_() 174 frame->vex = tst->arch.vex; in VG_() 244 tst->arch.vex = frame->vex; in VG_() 257 tid, tst->arch.vex.guest_EIP); in VG_()
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-amd64-darwin.c | 67 VexGuestAMD64State *vex) in x86_thread_state64_from_vex() argument 69 mach->__rax = vex->guest_RAX; in x86_thread_state64_from_vex() 70 mach->__rbx = vex->guest_RBX; in x86_thread_state64_from_vex() 71 mach->__rcx = vex->guest_RCX; in x86_thread_state64_from_vex() 72 mach->__rdx = vex->guest_RDX; in x86_thread_state64_from_vex() 73 mach->__rdi = vex->guest_RDI; in x86_thread_state64_from_vex() 74 mach->__rsi = vex->guest_RSI; in x86_thread_state64_from_vex() 75 mach->__rbp = vex->guest_RBP; in x86_thread_state64_from_vex() 76 mach->__rsp = vex->guest_RSP; in x86_thread_state64_from_vex() 77 mach->__rflags = LibVEX_GuestAMD64_get_rflags(vex); in x86_thread_state64_from_vex() [all …]
|
D | syswrap-x86-darwin.c | 65 VexGuestX86State *vex) in x86_thread_state32_from_vex() argument 67 mach->__eax = vex->guest_EAX; in x86_thread_state32_from_vex() 68 mach->__ebx = vex->guest_EBX; in x86_thread_state32_from_vex() 69 mach->__ecx = vex->guest_ECX; in x86_thread_state32_from_vex() 70 mach->__edx = vex->guest_EDX; in x86_thread_state32_from_vex() 71 mach->__edi = vex->guest_EDI; in x86_thread_state32_from_vex() 72 mach->__esi = vex->guest_ESI; in x86_thread_state32_from_vex() 73 mach->__ebp = vex->guest_EBP; in x86_thread_state32_from_vex() 74 mach->__esp = vex->guest_ESP; in x86_thread_state32_from_vex() 75 mach->__ss = vex->guest_SS; in x86_thread_state32_from_vex() [all …]
|
D | syswrap-x86-solaris.c | 144 uc->uc_mcontext.gregs[VKI_EIP] = tst->arch.vex.guest_EIP; in ML_() 147 uc->uc_mcontext.gregs[VKI_EAX] = tst->arch.vex.guest_EAX; in ML_() 150 uc->uc_mcontext.gregs[VKI_EBX] = tst->arch.vex.guest_EBX; in ML_() 153 uc->uc_mcontext.gregs[VKI_ECX] = tst->arch.vex.guest_ECX; in ML_() 156 uc->uc_mcontext.gregs[VKI_EDX] = tst->arch.vex.guest_EDX; in ML_() 159 uc->uc_mcontext.gregs[VKI_EBP] = tst->arch.vex.guest_EBP; in ML_() 162 uc->uc_mcontext.gregs[VKI_ESI] = tst->arch.vex.guest_ESI; in ML_() 165 uc->uc_mcontext.gregs[VKI_EDI] = tst->arch.vex.guest_EDI; in ML_() 168 uc->uc_mcontext.gregs[VKI_UESP] = tst->arch.vex.guest_ESP; in ML_() 188 uc->uc_mcontext.gregs[VKI_CS] = tst->arch.vex.guest_CS; in ML_() [all …]
|
D | syswrap-amd64-solaris.c | 120 uc->uc_mcontext.gregs[VKI_REG_RIP] = tst->arch.vex.guest_RIP; in ML_() 123 uc->uc_mcontext.gregs[VKI_REG_RAX] = tst->arch.vex.guest_RAX; in ML_() 126 uc->uc_mcontext.gregs[VKI_REG_RBX] = tst->arch.vex.guest_RBX; in ML_() 129 uc->uc_mcontext.gregs[VKI_REG_RCX] = tst->arch.vex.guest_RCX; in ML_() 132 uc->uc_mcontext.gregs[VKI_REG_RDX] = tst->arch.vex.guest_RDX; in ML_() 135 uc->uc_mcontext.gregs[VKI_REG_RBP] = tst->arch.vex.guest_RBP; in ML_() 138 uc->uc_mcontext.gregs[VKI_REG_RSI] = tst->arch.vex.guest_RSI; in ML_() 141 uc->uc_mcontext.gregs[VKI_REG_RDI] = tst->arch.vex.guest_RDI; in ML_() 144 uc->uc_mcontext.gregs[VKI_REG_R8] = tst->arch.vex.guest_R8; in ML_() 147 uc->uc_mcontext.gregs[VKI_REG_R9] = tst->arch.vex.guest_R9; in ML_() [all …]
|
D | syswrap-main.c | 339 syscallno, &tst->arch.vex, in do_syscall_for_client() 346 VG_DARWIN_SYSNO_FOR_KERNEL(syscallno), &tst->arch.vex, in do_syscall_for_client() 352 VG_DARWIN_SYSNO_FOR_KERNEL(syscallno), &tst->arch.vex, in do_syscall_for_client() 358 VG_DARWIN_SYSNO_FOR_KERNEL(syscallno), &tst->arch.vex, in do_syscall_for_client() 378 syscallno, &tst->arch.vex, in do_syscall_for_client() 383 syscallno, &tst->arch.vex, in do_syscall_for_client() 389 LibVEX_GuestX86_put_eflag_c(cflag, &tst->arch.vex); in do_syscall_for_client() 391 LibVEX_GuestAMD64_put_rflag_c(cflag, &tst->arch.vex); in do_syscall_for_client() 1821 getSyscallArgsFromGuestState( &sci->orig_args, &tst->arch.vex, trc ); in VG_() 1849 tst->arch.vex.guest_SC_CLASS = VG_DARWIN_SYSNO_CLASS(sysno); in VG_() [all …]
|
/external/valgrind/coregrind/ |
D | m_machine.c | 44 #define INSTR_PTR(regs) ((regs).vex.VG_INSTR_PTR) 45 #define STACK_PTR(regs) ((regs).vex.VG_STACK_PTR) 46 #define FRAME_PTR(regs) ((regs).vex.VG_FRAME_PTR) 69 regs->r_pc = (ULong)VG_(threads)[tid].arch.vex.guest_EIP; in VG_() 70 regs->r_sp = (ULong)VG_(threads)[tid].arch.vex.guest_ESP; in VG_() 72 = VG_(threads)[tid].arch.vex.guest_EBP; in VG_() 74 regs->r_pc = VG_(threads)[tid].arch.vex.guest_RIP; in VG_() 75 regs->r_sp = VG_(threads)[tid].arch.vex.guest_RSP; in VG_() 77 = VG_(threads)[tid].arch.vex.guest_RBP; in VG_() 79 regs->r_pc = (ULong)VG_(threads)[tid].arch.vex.guest_CIA; in VG_() [all …]
|
/external/valgrind/coregrind/m_coredump/ |
D | coredump-elf.c | 242 regs->eflags = LibVEX_GuestX86_get_eflags( &arch->vex ); in fill_prstatus() 243 regs->esp = arch->vex.guest_ESP; in fill_prstatus() 244 regs->eip = arch->vex.guest_EIP; in fill_prstatus() 246 regs->ebx = arch->vex.guest_EBX; in fill_prstatus() 247 regs->ecx = arch->vex.guest_ECX; in fill_prstatus() 248 regs->edx = arch->vex.guest_EDX; in fill_prstatus() 249 regs->esi = arch->vex.guest_ESI; in fill_prstatus() 250 regs->edi = arch->vex.guest_EDI; in fill_prstatus() 251 regs->ebp = arch->vex.guest_EBP; in fill_prstatus() 252 regs->eax = arch->vex.guest_EAX; in fill_prstatus() [all …]
|
D | coredump-solaris.c | 91 if (YMM_NON_ZERO(arch->vex.guest_YMM0) || in should_dump_xregs() 92 YMM_NON_ZERO(arch->vex.guest_YMM1) || in should_dump_xregs() 93 YMM_NON_ZERO(arch->vex.guest_YMM2) || in should_dump_xregs() 94 YMM_NON_ZERO(arch->vex.guest_YMM3) || in should_dump_xregs() 95 YMM_NON_ZERO(arch->vex.guest_YMM4) || in should_dump_xregs() 96 YMM_NON_ZERO(arch->vex.guest_YMM5) || in should_dump_xregs() 97 YMM_NON_ZERO(arch->vex.guest_YMM6) || in should_dump_xregs() 98 YMM_NON_ZERO(arch->vex.guest_YMM7) || in should_dump_xregs() 99 YMM_NON_ZERO(arch->vex.guest_YMM9) || in should_dump_xregs() 100 YMM_NON_ZERO(arch->vex.guest_YMM0) || in should_dump_xregs() [all …]
|
/external/valgrind/docs/internals/ |
D | 3_0_BUGSTATUS.txt | 63 FIXED-TRUNK: vex:1320 - vex impl of sysenter 106 112941 vex x86: 0xD9 0xF4 (fxtract) 109 FIXED-TRUNK: vex:1405 112 113015 vex amd64->IR: 0xE3 0x14 0x48 0x83 (jrcxz) 114 FIXED-TRUNK: vex:1413 126 FIXED-TRUNK: vex:??? 129 113541 vex: the `impossible' happened: Grp5(x86) (alt encoding inc/dec) 131 FIXED-TRUNK: vex:1412 142 FIXED-TRUNK: vex:1410, test in valgrind:4851 153 113851 vex x86->IR: (pmaddwd): 0x66 0xF 0xF5 0xC7 [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/Disassembler/ |
D | X86DisassemblerDecoder.h | 48 #define rFromVEX2of3(vex) (((~(vex)) & 0x80) >> 7) argument 49 #define xFromVEX2of3(vex) (((~(vex)) & 0x40) >> 6) argument 50 #define bFromVEX2of3(vex) (((~(vex)) & 0x20) >> 5) argument 51 #define mmmmmFromVEX2of3(vex) ((vex) & 0x1f) argument 52 #define wFromVEX3of3(vex) (((vex) & 0x80) >> 7) argument 53 #define vvvvFromVEX3of3(vex) (((~(vex)) & 0x78) >> 3) argument 54 #define lFromVEX3of3(vex) (((vex) & 0x4) >> 2) argument 55 #define ppFromVEX3of3(vex) ((vex) & 0x3) argument 57 #define rFromVEX2of2(vex) (((~(vex)) & 0x80) >> 7) argument 58 #define vvvvFromVEX2of2(vex) (((~(vex)) & 0x78) >> 3) argument [all …]
|
/external/llvm/lib/Target/X86/Disassembler/ |
D | X86DisassemblerDecoder.h | 52 #define rFromVEX2of3(vex) (((~(vex)) & 0x80) >> 7) argument 53 #define xFromVEX2of3(vex) (((~(vex)) & 0x40) >> 6) argument 54 #define bFromVEX2of3(vex) (((~(vex)) & 0x20) >> 5) argument 55 #define mmmmmFromVEX2of3(vex) ((vex) & 0x1f) argument 56 #define wFromVEX3of3(vex) (((vex) & 0x80) >> 7) argument 57 #define vvvvFromVEX3of3(vex) (((~(vex)) & 0x78) >> 3) argument 58 #define lFromVEX3of3(vex) (((vex) & 0x4) >> 2) argument 59 #define ppFromVEX3of3(vex) ((vex) & 0x3) argument 61 #define rFromVEX2of2(vex) (((~(vex)) & 0x80) >> 7) argument 62 #define vvvvFromVEX2of2(vex) (((~(vex)) & 0x78) >> 3) argument [all …]
|
/external/valgrind/coregrind/m_initimg/ |
D | initimg-linux.c | 1034 LibVEX_GuestX86_initialise(&arch->vex); in VG_() 1041 arch->vex.guest_ESP = iifii.initial_client_SP; in VG_() 1042 arch->vex.guest_EIP = iifii.initial_client_IP; in VG_() 1046 asm volatile("movw %%cs, %0" : : "m" (arch->vex.guest_CS)); in VG_() 1047 asm volatile("movw %%ds, %0" : : "m" (arch->vex.guest_DS)); in VG_() 1048 asm volatile("movw %%ss, %0" : : "m" (arch->vex.guest_SS)); in VG_() 1049 asm volatile("movw %%es, %0" : : "m" (arch->vex.guest_ES)); in VG_() 1056 LibVEX_GuestAMD64_initialise(&arch->vex); in VG_() 1063 arch->vex.guest_RSP = iifii.initial_client_SP; in VG_() 1064 arch->vex.guest_RIP = iifii.initial_client_IP; in VG_() [all …]
|
/external/valgrind/VEX/useful/ |
D | Makefile-vex | 1 # Crude makefile to build the "vex" executable from test_main.c 3 vex: test_main.c test_main.h ../pub/*.h ../priv/*.c ../priv/*.h 5 cc -I../pub -o vex test_main.c ../libvex.a 8 rm -f vex ../priv/*.o
|