Home | History | Annotate | Download | only in priv

Lines Matching full:vex_state

894 ULong LibVEX_GuestAMD64_get_rflags ( /*IN*/const VexGuestAMD64State* vex_state )
897 vex_state->guest_CC_OP,
898 vex_state->guest_CC_DEP1,
899 vex_state->guest_CC_DEP2,
900 vex_state->guest_CC_NDEP
902 Long dflag = vex_state->guest_DFLAG;
906 if (vex_state->guest_IDFLAG == 1)
908 if (vex_state->guest_ACFLAG == 1)
917 /*MOD*/VexGuestAMD64State* vex_state )
921 vex_state->guest_DFLAG = -1;
925 vex_state->guest_DFLAG = 1;
929 vex_state->guest_IDFLAG = 1;
933 vex_state->guest_IDFLAG = 0;
937 vex_state->guest_ACFLAG = 1;
941 vex_state->guest_ACFLAG = 0;
945 vex_state->guest_CC_OP = AMD64G_CC_OP_COPY;
946 vex_state->guest_CC_DEP1 = rflags & cc_mask;
947 vex_state->guest_CC_DEP2 = 0;
948 vex_state->guest_CC_NDEP = 0;
954 /*MOD*/VexGuestAMD64State* vex_state )
957 vex_state->guest_CC_OP,
958 vex_state->guest_CC_DEP1,
959 vex_state->guest_CC_DEP2,
960 vex_state->guest_CC_NDEP
967 vex_state->guest_CC_OP = AMD64G_CC_OP_COPY;
968 vex_state->guest_CC_DEP1 = oszacp;
969 vex_state->guest_CC_DEP2 = 0;
970 vex_state->guest_CC_NDEP = 0;
1847 /*OUT*/VexGuestAMD64State* vex_state )
1851 ULong* vexRegs = (ULong*)(&vex_state->guest_FPREG[0]);
1852 UChar* vexTags = (UChar*)(&vex_state->guest_FPTAG[0]);
1885 vex_state->guest_FTOP = ftop;
1888 vex_state->guest_FC3210 = c3210;
1896 vex_state->guest_FPROUND = fpround & 3;
1906 void do_get_x87 ( /*IN*/VexGuestAMD64State* vex_state,
1911 ULong* vexRegs = (ULong*)(&vex_state->guest_FPREG[0]);
1912 UChar* vexTags = (UChar*)(&vex_state->guest_FPTAG[0]);
1914 UInt ftop = vex_state->guest_FTOP;
1915 UInt c3210 = vex_state->guest_FC3210;
1924 = toUShort(amd64g_create_fpucw( vex_state->guest_FPROUND ));
2344 VexEmNote amd64g_dirtyhelper_FLDENV ( /*OUT*/VexGuestAMD64State* vex_state,
2347 return do_put_x87( False, (UChar*)x87_state, vex_state );
2355 void amd64g_dirtyhelper_FSTENV ( /*IN*/VexGuestAMD64State* vex_state,
2360 UChar* vexTags = (UChar*)(&vex_state->guest_FPTAG[0]);
2362 UInt ftop = vex_state->guest_FTOP;
2363 ULong c3210 = vex_state->guest_FC3210;
2372 = toUShort(toUInt( amd64g_create_fpucw( vex_state->guest_FPROUND ) ));
2396 void amd64g_dirtyhelper_FNSAVE ( /*IN*/VexGuestAMD64State* vex_state,
2399 do_get_x87( vex_state, (UChar*)x87_state );
2407 void amd64g_dirtyhelper_FNSAVES ( /*IN*/VexGuestAMD64State* vex_state,
2412 ULong* vexRegs = (ULong*)(&vex_state->guest_FPREG[0]);
2413 UChar* vexTags = (UChar*)(&vex_state->guest_FPTAG[0]);
2415 UInt ftop = vex_state->guest_FTOP;
2416 UInt c3210 = vex_state->guest_FC3210;
2424 = toUShort(amd64g_create_fpucw( vex_state->guest_FPROUND ));
2450 VexEmNote amd64g_dirtyhelper_FRSTOR ( /*OUT*/VexGuestAMD64State* vex_state,
2453 return do_put_x87( True, (UChar*)x87_state, vex_state );
2461 VexEmNote amd64g_dirtyhelper_FRSTORS ( /*OUT*/VexGuestAMD64State* vex_state,
2466 ULong* vexRegs = (ULong*)(&vex_state->guest_FPREG[0]);
2467 UChar* vexTags = (UChar*)(&vex_state->guest_FPTAG[0]);
2498 vex_state->guest_FTOP = ftop;
2501 vex_state->guest_FC3210 = c3210;
2509 vex_state->guest_FPROUND = fpround & 3;
4239 void LibVEX_GuestAMD64_initialise ( /*OUT*/VexGuestAMD64State* vex_state )
4241 vex_state->host_EvC_FAILADDR = 0;
4242 vex_state->host_EvC_COUNTER = 0;
4243 vex_state->pad0 = 0;
4245 vex_state->guest_RAX = 0;
4246 vex_state->guest_RCX = 0;
4247 vex_state->guest_RDX = 0;
4248 vex_state->guest_RBX = 0;
4249 vex_state->guest_RSP = 0;
4250 vex_state->guest_RBP = 0;
4251 vex_state->guest_RSI = 0;
4252 vex_state->guest_RDI = 0;
4253 vex_state->guest_R8 = 0;
4254 vex_state->guest_R9 = 0;
4255 vex_state->guest_R10 = 0;
4256 vex_state->guest_R11 = 0;
4257 vex_state->guest_R12 = 0;
4258 vex_state->guest_R13 = 0;
4259 vex_state->guest_R14 = 0;
4260 vex_state->guest_R15 = 0;
4262 vex_state->guest_CC_OP = AMD64G_CC_OP_COPY;
4263 vex_state->guest_CC_DEP1 = 0;
4264 vex_state->guest_CC_DEP2 = 0;
4265 vex_state->guest_CC_NDEP = 0;
4267 vex_state->guest_DFLAG = 1; /* forwards */
4268 vex_state->guest_IDFLAG = 0;
4269 vex_state->guest_ACFLAG = 0;
4274 vex_state->guest_FS_CONST = 0;
4276 vex_state->guest_RIP = 0;
4279 amd64g_dirtyhelper_FINIT( vex_state );
4286 vex_state->guest_SSEROUND = (ULong)Irrm_NEAREST;
4287 AVXZERO(vex_state->guest_YMM0);
4288 AVXZERO(vex_state->guest_YMM1);
4289 AVXZERO(vex_state->guest_YMM2);
4290 AVXZERO(vex_state->guest_YMM3);
4291 AVXZERO(vex_state->guest_YMM4);
4292 AVXZERO(vex_state->guest_YMM5);
4293 AVXZERO(vex_state->guest_YMM6);
4294 AVXZERO(vex_state->guest_YMM7);
4295 AVXZERO(vex_state->guest_YMM8);
4296 AVXZERO(vex_state->guest_YMM9);
4297 AVXZERO(vex_state->guest_YMM10);
4298 AVXZERO(vex_state->guest_YMM11);
4299 AVXZERO(vex_state->guest_YMM12);
4300 AVXZERO(vex_state->guest_YMM13);
4301 AVXZERO(vex_state->guest_YMM14);
4302 AVXZERO(vex_state->guest_YMM15);
4303 AVXZERO(vex_state->guest_YMM16);
4307 vex_state->guest_EMNOTE = EmNote_NONE;
4311 vex_state->guest_CMSTART = 0;
4312 vex_state->guest_CMLEN = 0;
4314 vex_state->guest_NRADDR = 0;
4315 vex_state->guest_SC_CLASS = 0;
4316 vex_state->guest_GS_CONST = 0;
4318 vex_state->guest_IP_AT_SYSCALL = 0;
4319 vex_state->pad1 = 0;