Lines Matching refs:vex_state

716 UInt LibVEX_GuestX86_get_eflags ( /*IN*/const VexGuestX86State* vex_state )  in LibVEX_GuestX86_get_eflags()  argument
719 vex_state->guest_CC_OP, in LibVEX_GuestX86_get_eflags()
720 vex_state->guest_CC_DEP1, in LibVEX_GuestX86_get_eflags()
721 vex_state->guest_CC_DEP2, in LibVEX_GuestX86_get_eflags()
722 vex_state->guest_CC_NDEP in LibVEX_GuestX86_get_eflags()
724 UInt dflag = vex_state->guest_DFLAG; in LibVEX_GuestX86_get_eflags()
728 if (vex_state->guest_IDFLAG == 1) in LibVEX_GuestX86_get_eflags()
730 if (vex_state->guest_ACFLAG == 1) in LibVEX_GuestX86_get_eflags()
739 /*MOD*/VexGuestX86State* vex_state ) in LibVEX_GuestX86_put_eflags() argument
743 vex_state->guest_DFLAG = 0xFFFFFFFF; in LibVEX_GuestX86_put_eflags()
747 vex_state->guest_DFLAG = 1; in LibVEX_GuestX86_put_eflags()
751 vex_state->guest_IDFLAG = 1; in LibVEX_GuestX86_put_eflags()
755 vex_state->guest_IDFLAG = 0; in LibVEX_GuestX86_put_eflags()
759 vex_state->guest_ACFLAG = 1; in LibVEX_GuestX86_put_eflags()
763 vex_state->guest_ACFLAG = 0; in LibVEX_GuestX86_put_eflags()
767 vex_state->guest_CC_OP = X86G_CC_OP_COPY; in LibVEX_GuestX86_put_eflags()
768 vex_state->guest_CC_DEP1 = eflags & cc_mask; in LibVEX_GuestX86_put_eflags()
769 vex_state->guest_CC_DEP2 = 0; in LibVEX_GuestX86_put_eflags()
770 vex_state->guest_CC_NDEP = 0; in LibVEX_GuestX86_put_eflags()
776 /*MOD*/VexGuestX86State* vex_state ) in LibVEX_GuestX86_put_eflag_c() argument
779 vex_state->guest_CC_OP, in LibVEX_GuestX86_put_eflag_c()
780 vex_state->guest_CC_DEP1, in LibVEX_GuestX86_put_eflag_c()
781 vex_state->guest_CC_DEP2, in LibVEX_GuestX86_put_eflag_c()
782 vex_state->guest_CC_NDEP in LibVEX_GuestX86_put_eflag_c()
789 vex_state->guest_CC_OP = X86G_CC_OP_COPY; in LibVEX_GuestX86_put_eflag_c()
790 vex_state->guest_CC_DEP1 = oszacp; in LibVEX_GuestX86_put_eflag_c()
791 vex_state->guest_CC_DEP2 = 0; in LibVEX_GuestX86_put_eflag_c()
792 vex_state->guest_CC_NDEP = 0; in LibVEX_GuestX86_put_eflag_c()
1603 /*OUT*/VexGuestX86State* vex_state ) in do_put_x87() argument
1607 ULong* vexRegs = (ULong*)(&vex_state->guest_FPREG[0]); in do_put_x87()
1608 UChar* vexTags = (UChar*)(&vex_state->guest_FPTAG[0]); in do_put_x87()
1641 vex_state->guest_FTOP = ftop; in do_put_x87()
1644 vex_state->guest_FC3210 = c3210; in do_put_x87()
1652 vex_state->guest_FPROUND = fpround & 3; in do_put_x87()
1662 void do_get_x87 ( /*IN*/VexGuestX86State* vex_state, in do_get_x87() argument
1667 ULong* vexRegs = (ULong*)(&vex_state->guest_FPREG[0]); in do_get_x87()
1668 UChar* vexTags = (UChar*)(&vex_state->guest_FPTAG[0]); in do_get_x87()
1670 UInt ftop = vex_state->guest_FTOP; in do_get_x87()
1671 UInt c3210 = vex_state->guest_FC3210; in do_get_x87()
1680 = toUShort(x86g_create_fpucw( vex_state->guest_FPROUND )); in do_get_x87()
1925 void LibVEX_GuestX86_get_x87 ( /*IN*/VexGuestX86State* vex_state, in LibVEX_GuestX86_get_x87() argument
1928 do_get_x87 ( vex_state, x87_state ); in LibVEX_GuestX86_get_x87()
1935 /*MOD*/VexGuestX86State* vex_state ) in LibVEX_GuestX86_put_x87() argument
1937 return do_put_x87 ( True/*moveRegs*/, x87_state, vex_state ); in LibVEX_GuestX86_put_x87()
1942 UInt LibVEX_GuestX86_get_mxcsr ( /*IN*/VexGuestX86State* vex_state ) in LibVEX_GuestX86_get_mxcsr() argument
1944 return x86g_create_mxcsr ( vex_state->guest_SSEROUND ); in LibVEX_GuestX86_get_mxcsr()
1951 /*MOD*/VexGuestX86State* vex_state) in LibVEX_GuestX86_put_mxcsr() argument
1954 vex_state->guest_SSEROUND = w64 & 0xFFFFFFFF; in LibVEX_GuestX86_put_mxcsr()
2820 void LibVEX_GuestX86_initialise ( /*OUT*/VexGuestX86State* vex_state ) in LibVEX_GuestX86_initialise() argument
2822 vex_state->host_EvC_FAILADDR = 0; in LibVEX_GuestX86_initialise()
2823 vex_state->host_EvC_COUNTER = 0; in LibVEX_GuestX86_initialise()
2825 vex_state->guest_EAX = 0; in LibVEX_GuestX86_initialise()
2826 vex_state->guest_ECX = 0; in LibVEX_GuestX86_initialise()
2827 vex_state->guest_EDX = 0; in LibVEX_GuestX86_initialise()
2828 vex_state->guest_EBX = 0; in LibVEX_GuestX86_initialise()
2829 vex_state->guest_ESP = 0; in LibVEX_GuestX86_initialise()
2830 vex_state->guest_EBP = 0; in LibVEX_GuestX86_initialise()
2831 vex_state->guest_ESI = 0; in LibVEX_GuestX86_initialise()
2832 vex_state->guest_EDI = 0; in LibVEX_GuestX86_initialise()
2834 vex_state->guest_CC_OP = X86G_CC_OP_COPY; in LibVEX_GuestX86_initialise()
2835 vex_state->guest_CC_DEP1 = 0; in LibVEX_GuestX86_initialise()
2836 vex_state->guest_CC_DEP2 = 0; in LibVEX_GuestX86_initialise()
2837 vex_state->guest_CC_NDEP = 0; in LibVEX_GuestX86_initialise()
2838 vex_state->guest_DFLAG = 1; /* forwards */ in LibVEX_GuestX86_initialise()
2839 vex_state->guest_IDFLAG = 0; in LibVEX_GuestX86_initialise()
2840 vex_state->guest_ACFLAG = 0; in LibVEX_GuestX86_initialise()
2842 vex_state->guest_EIP = 0; in LibVEX_GuestX86_initialise()
2845 x86g_dirtyhelper_FINIT( vex_state ); in LibVEX_GuestX86_initialise()
2850 vex_state->guest_SSEROUND = (UInt)Irrm_NEAREST; in LibVEX_GuestX86_initialise()
2851 SSEZERO(vex_state->guest_XMM0); in LibVEX_GuestX86_initialise()
2852 SSEZERO(vex_state->guest_XMM1); in LibVEX_GuestX86_initialise()
2853 SSEZERO(vex_state->guest_XMM2); in LibVEX_GuestX86_initialise()
2854 SSEZERO(vex_state->guest_XMM3); in LibVEX_GuestX86_initialise()
2855 SSEZERO(vex_state->guest_XMM4); in LibVEX_GuestX86_initialise()
2856 SSEZERO(vex_state->guest_XMM5); in LibVEX_GuestX86_initialise()
2857 SSEZERO(vex_state->guest_XMM6); in LibVEX_GuestX86_initialise()
2858 SSEZERO(vex_state->guest_XMM7); in LibVEX_GuestX86_initialise()
2862 vex_state->guest_CS = 0; in LibVEX_GuestX86_initialise()
2863 vex_state->guest_DS = 0; in LibVEX_GuestX86_initialise()
2864 vex_state->guest_ES = 0; in LibVEX_GuestX86_initialise()
2865 vex_state->guest_FS = 0; in LibVEX_GuestX86_initialise()
2866 vex_state->guest_GS = 0; in LibVEX_GuestX86_initialise()
2867 vex_state->guest_SS = 0; in LibVEX_GuestX86_initialise()
2868 vex_state->guest_LDT = 0; in LibVEX_GuestX86_initialise()
2869 vex_state->guest_GDT = 0; in LibVEX_GuestX86_initialise()
2871 vex_state->guest_EMNOTE = EmNote_NONE; in LibVEX_GuestX86_initialise()
2874 vex_state->guest_CMSTART = 0; in LibVEX_GuestX86_initialise()
2875 vex_state->guest_CMLEN = 0; in LibVEX_GuestX86_initialise()
2877 vex_state->guest_NRADDR = 0; in LibVEX_GuestX86_initialise()
2878 vex_state->guest_SC_CLASS = 0; in LibVEX_GuestX86_initialise()
2879 vex_state->guest_IP_AT_SYSCALL = 0; in LibVEX_GuestX86_initialise()
2881 vex_state->padding1 = 0; in LibVEX_GuestX86_initialise()