Lines Matching defs:cpu_env
76 static TCGv_ptr cpu_env;
365 tcg_gen_st8_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_B_OFFSET);
367 tcg_gen_st8_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg - 4]) + REG_H_OFFSET);
371 tcg_gen_st16_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_W_OFFSET);
375 tcg_gen_st32_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_L_OFFSET);
378 tcg_gen_st32_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_LH_OFFSET);
382 tcg_gen_st_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg]));
387 tcg_gen_st32_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_L_OFFSET);
407 tcg_gen_st16_tl(cpu_A0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_W_OFFSET);
411 tcg_gen_st32_tl(cpu_A0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_L_OFFSET);
414 tcg_gen_st32_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_LH_OFFSET);
418 tcg_gen_st_tl(cpu_A0, cpu_env, offsetof(CPUX86State, regs[reg]));
423 tcg_gen_st32_tl(cpu_A0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_L_OFFSET);
432 tcg_gen_ld8u_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg - 4]) + REG_H_OFFSET);
434 tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg]));
445 tcg_gen_ld32u_tl(cpu_A0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_L_OFFSET);
480 tcg_gen_st_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, eip));
487 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
489 tcg_gen_st16_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_W_OFFSET);
492 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
497 tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
501 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
503 tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
513 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
515 tcg_gen_st16_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_W_OFFSET);
518 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
523 tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
527 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
529 tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
537 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
548 tcg_gen_ld32u_tl(cpu_A0, cpu_env, offsetof(CPUX86State, segs[reg].base) + REG_L_OFFSET);
553 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, segs[reg].base));
563 tcg_gen_ld_tl(cpu_A0, cpu_env, offsetof(CPUX86State, segs[reg].base));
568 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, segs[reg].base));
574 tcg_gen_ld_tl(cpu_A0, cpu_env, offsetof(CPUX86State, regs[reg]));
579 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]));
678 tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, eip));
739 tcg_gen_ld32s_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, df));
786 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[R_ECX]));
793 tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[R_ECX]));
842 gen_helper_check_iob(cpu_env, cpu_tmp2_i32);
845 gen_helper_check_iow(cpu_env, cpu_tmp2_i32);
848 gen_helper_check_iol(cpu_env, cpu_tmp2_i32);
861 gen_helper_svm_check_io(cpu_env, cpu_tmp2_i32,
913 gen_helper_cc_compute_all(cpu_tmp2_i32, cpu_env, cpu_cc_op);
1007 gen_helper_cc_compute_c(cpu_tmp2_i32, cpu_env, cpu_cc_op);
1443 gen_helper_fadd_ST0_FT0(cpu_env);
1446 gen_helper_fmul_ST0_FT0(cpu_env);
1449 gen_helper_fcom_ST0_FT0(cpu_env);
1452 gen_helper_fcom_ST0_FT0(cpu_env);
1455 gen_helper_fsub_ST0_FT0(cpu_env);
1458 gen_helper_fsubr_ST0_FT0(cpu_env);
1461 gen_helper_fdiv_ST0_FT0(cpu_env);
1464 gen_helper_fdivr_ST0_FT0(cpu_env);
1475 gen_helper_fadd_STN_ST0(cpu_env, tmp);
1478 gen_helper_fmul_STN_ST0(cpu_env, tmp);
1481 gen_helper_fsubr_STN_ST0(cpu_env, tmp);
1484 gen_helper_fsub_STN_ST0(cpu_env, tmp);
1487 gen_helper_fdivr_STN_ST0(cpu_env, tmp);
1490 gen_helper_fdiv_STN_ST0(cpu_env, tmp);
1918 gen_helper_rcrb(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
1921 gen_helper_rcrw(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
1924 gen_helper_rcrl(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
1928 gen_helper_rcrq(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
1935 gen_helper_rclb(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
1938 gen_helper_rclw(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
1941 gen_helper_rcll(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
1945 gen_helper_rclq(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
2544 tcg_gen_ld32u_tl(cpu_T[0], cpu_env,
2551 tcg_gen_st32_tl(cpu_T[0], cpu_env,
2554 tcg_gen_st_tl(cpu_T[0], cpu_env,
2567 gen_helper_load_seg(cpu_env, tcg_const_i32(seg_reg), cpu_tmp2_i32);
2595 gen_helper_svm_check_intercept_param(cpu_env, tcg_const_i32(type),
2803 gen_helper_enter64_level(cpu_env, tcg_const_i32(level),
2828 gen_helper_enter_level(cpu_env, tcg_const_i32(level),
2842 gen_helper_raise_exception(cpu_env, tcg_const_i32(trapno));
2853 gen_helper_raise_interrupt(cpu_env, tcg_const_i32(intno),
2862 gen_helper_debug(cpu_env);
2872 gen_helper_reset_inhibit_irq(cpu_env);
2875 gen_helper_reset_rf(cpu_env);
2878 gen_helper_debug(cpu_env);
2880 gen_helper_single_step(cpu_env);
2910 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, offset);
2916 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, offset);
2924 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, offset + offsetof(XMMReg, XMM_Q(0)));
2927 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, offset + offsetof(XMMReg, XMM_Q(1)));
2933 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, offset + offsetof(XMMReg, XMM_Q(0)));
2936 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, offset + offsetof(XMMReg, XMM_Q(1)));
2942 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, s_offset);
2943 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, d_offset);
2944 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, s_offset + 8);
2945 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, d_offset + 8);
2950 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, s_offset);
2951 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, d_offset);
2956 tcg_gen_ld_i32(cpu_tmp2_i32, cpu_env, s_offset);
2957 tcg_gen_st_i32(cpu_tmp2_i32, cpu_env, d_offset);
2963 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, d_offset);
3333 gen_helper_emms(cpu_env);
3338 gen_helper_emms(cpu_env);
3344 gen_helper_enter_mmx(cpu_env);
3374 tcg_gen_st_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,fpregs[reg].mmx));
3379 tcg_gen_addi_ptr(cpu_ptr0, cpu_env,
3389 tcg_gen_addi_ptr(cpu_ptr0, cpu_env,
3396 tcg_gen_addi_ptr(cpu_ptr0, cpu_env,
3408 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env,
3410 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env,
3433 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_regs[reg].XMM_L(0)));
3435 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_regs[reg].XMM_L(1)));
3436 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_regs[reg].XMM_L(2)));
3437 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_regs[reg].XMM_L(3)));
3449 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_regs[reg].XMM_L(2)));
3450 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_regs[reg].XMM_L(3)));
3528 tcg_gen_ld_i64(cpu_T[0], cpu_env,
3534 tcg_gen_ld32u_tl(cpu_T[0], cpu_env,
3542 tcg_gen_ld_i64(cpu_T[0], cpu_env,
3548 tcg_gen_ld32u_tl(cpu_T[0], cpu_env,
3592 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_regs[reg].XMM_L(0)));
3640 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_t0.XMM_L(0)));
3642 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_t0.XMM_L(1)));
3646 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,mmx_t0.MMX_L(0)));
3648 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,mmx_t0.MMX_L(1)));
3663 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op2_offset);
3664 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op1_offset);
3665 sse_fn_epp(cpu_env, cpu_ptr0, cpu_ptr1);
3669 tcg_gen_addi_ptr(cpu_ptr0, cpu_env,
3671 gen_helper_movmskps(cpu_tmp2_i32, cpu_env, cpu_ptr0);
3677 tcg_gen_addi_ptr(cpu_ptr0, cpu_env,
3679 gen_helper_movmskpd(cpu_tmp2_i32, cpu_env, cpu_ptr0);
3685 gen_helper_enter_mmx(cpu_env);
3695 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
3696 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
3699 gen_helper_cvtpi2ps(cpu_env, cpu_ptr0, cpu_ptr1);
3703 gen_helper_cvtpi2pd(cpu_env, cpu_ptr0, cpu_ptr1);
3712 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
3716 sse_fn_epi(cpu_env, cpu_ptr0, cpu_tmp2_i32);
3720 sse_fn_epl(cpu_env, cpu_ptr0, cpu_T[0]);
3730 gen_helper_enter_mmx(cpu_env);
3740 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
3741 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
3744 gen_helper_cvttps2pi(cpu_env, cpu_ptr0, cpu_ptr1);
3747 gen_helper_cvttpd2pi(cpu_env, cpu_ptr0, cpu_ptr1);
3750 gen_helper_cvtps2pi(cpu_env, cpu_ptr0, cpu_ptr1);
3753 gen_helper_cvtpd2pi(cpu_env, cpu_ptr0, cpu_ptr1);
3768 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_t0.XMM_L(0)));
3775 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op2_offset);
3779 sse_fn_i_ep(cpu_tmp2_i32, cpu_env, cpu_ptr0);
3785 sse_fn_l_ep(cpu_T[0], cpu_env, cpu_ptr0);
3799 tcg_gen_st16_tl(cpu_T[0], cpu_env,
3803 tcg_gen_st16_tl(cpu_T[0], cpu_env,
3816 tcg_gen_ld16u_tl(cpu_T[0], cpu_env,
3821 tcg_gen_ld16u_tl(cpu_T[0], cpu_env,
3839 gen_helper_enter_mmx(cpu_env);
3846 gen_helper_enter_mmx(cpu_env);
3857 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, offsetof(CPUX86State,xmm_regs[rm]));
3858 gen_helper_pmovmskb_xmm(cpu_tmp2_i32, cpu_env, cpu_ptr0);
3861 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, offsetof(CPUX86State,fpregs[rm].mmx));
3862 gen_helper_pmovmskb_mmx(cpu_tmp2_i32, cpu_env, cpu_ptr0);
3905 tcg_gen_st_i32(cpu_tmp2_i32, cpu_env, op2_offset +
3911 tcg_gen_st16_tl(cpu_tmp0, cpu_env, op2_offset +
3935 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
3936 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
3937 sse_fn_epp(cpu_env, cpu_ptr0, cpu_ptr1);
3998 tcg_gen_ld8u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,
4007 tcg_gen_ld16u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,
4017 tcg_gen_ld_i32(cpu_tmp2_i32, cpu_env,
4028 tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env,
4042 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,
4056 tcg_gen_st8_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State,
4061 tcg_gen_ld_i32(cpu_tmp2_i32, cpu_env,
4069 tcg_gen_st_i32(cpu_tmp2_i32, cpu_env,
4074 cpu_env, offsetof(CPUX86State,
4078 cpu_env, offsetof(CPUX86State,
4082 cpu_env, offsetof(CPUX86State,
4086 cpu_env, offsetof(CPUX86State,
4097 tcg_gen_st_i32(cpu_tmp2_i32, cpu_env,
4107 tcg_gen_st_i64(cpu_tmp1_i64, cpu_env,
4148 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
4149 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
4150 sse_fn_eppi(cpu_env, cpu_ptr0, cpu_ptr1, tcg_const_i32(val));
4177 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,xmm_t0.XMM_L(0)));
4209 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
4210 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
4211 sse_fn_epp(cpu_env, cpu_ptr0, cpu_ptr1);
4216 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
4217 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
4229 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
4230 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
4231 sse_fn_epp(cpu_env, cpu_ptr0, cpu_ptr1);
4249 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
4250 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
4253 sse_fn_eppt(cpu_env, cpu_ptr0, cpu_ptr1, cpu_A0);
4256 tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
4257 tcg_gen_addi_ptr(cpu_ptr1, cpu_env, op2_offset);
4258 sse_fn_epp(cpu_env, cpu_ptr0, cpu_ptr1);
4644 gen_helper_mulq_EAX_T0(cpu_env, cpu_T[0]);
4714 gen_helper_imulq_EAX_T0(cpu_env, cpu_T[0]);
4724 gen_helper_divb_AL(cpu_env, cpu_T[0]);
4728 gen_helper_divw_AX(cpu_env, cpu_T[0]);
4733 gen_helper_divl_EAX(cpu_env, cpu_T[0]);
4738 gen_helper_divq_EAX(cpu_env, cpu_T[0]);
4747 gen_helper_idivb_AL(cpu_env, cpu_T[0]);
4751 gen_helper_idivw_AX(cpu_env, cpu_T[0]);
4756 gen_helper_idivl_EAX(cpu_env, cpu_T[0]);
4761 gen_helper_idivq_EAX(cpu_env, cpu_T[0]);
4840 gen_helper_lcall_protected(cpu_env, cpu_tmp2_i32, cpu_T[1],
4845 gen_helper_lcall_real(cpu_env, cpu_tmp2_i32, cpu_T[1],
4866 gen_helper_ljmp_protected(cpu_env, cpu_tmp2_i32, cpu_T[1],
4976 gen_helper_imulq_T0_T1(cpu_T[0], cpu_env, cpu_T[0], cpu_T[1]);
5070 tcg_gen_ld_tl(t2, cpu_env, offsetof(CPUX86State, regs[R_EAX]));
5109 gen_helper_cmpxchg16b(cpu_env, cpu_A0);
5118 gen_helper_cmpxchg8b(cpu_env, cpu_A0);
5244 gen_helper_set_inhibit_irq(cpu_env);
5320 gen_helper_set_inhibit_irq(cpu_env);
5643 tcg_gen_ld_tl(cpu_T3, cpu_env, offsetof(CPUX86State, regs[R_ECX]));
5677 gen_helper_flds_FT0(cpu_env, cpu_tmp2_i32);
5682 gen_helper_fildl_FT0(cpu_env, cpu_tmp2_i32);
5687 gen_helper_fldl_FT0(cpu_env, cpu_tmp1_i64);
5693 gen_helper_fildl_FT0(cpu_env, cpu_tmp2_i32);
5700 gen_helper_fpop(cpu_env);
5716 gen_helper_flds_ST0(cpu_env, cpu_tmp2_i32);
5721 gen_helper_fildl_ST0(cpu_env, cpu_tmp2_i32);
5726 gen_helper_fldl_ST0(cpu_env, cpu_tmp1_i64);
5732 gen_helper_fildl_ST0(cpu_env, cpu_tmp2_i32);
5740 gen_helper_fisttl_ST0(cpu_tmp2_i32, cpu_env);
5745 gen_helper_fisttll_ST0(cpu_tmp1_i64, cpu_env);
5751 gen_helper_fistt_ST0(cpu_tmp2_i32, cpu_env);
5756 gen_helper_fpop(cpu_env);
5761 gen_helper_fsts_ST0(cpu_tmp2_i32, cpu_env);
5766 gen_helper_fistl_ST0(cpu_tmp2_i32, cpu_env);
5771 gen_helper_fstl_ST0(cpu_tmp1_i64, cpu_env);
5777 gen_helper_fist_ST0(cpu_tmp2_i32, cpu_env);
5783 gen_helper_fpop(cpu_env);
5790 gen_helper_fldenv(cpu_env,
5796 gen_helper_fldcw(cpu_env, cpu_tmp2_i32);
5801 gen_helper_fstenv(cpu_env, cpu_A0, tcg_const_i32(s->dflag));
5804 gen_helper_fnstcw(cpu_tmp2_i32, cpu_env);
5811 gen_helper_fldt_ST0(cpu_env, cpu_A0);
5816 gen_helper_fstt_ST0(cpu_env, cpu_A0);
5817 gen_helper_fpop(cpu_env);
5822 gen_helper_frstor(cpu_env, cpu_A0, tcg_const_i32(s->dflag));
5827 gen_helper_fsave(cpu_env, cpu_A0, tcg_const_i32(s->dflag));
5830 gen_helper_fnstsw(cpu_tmp2_i32, cpu_env);
5837 gen_helper_fbld_ST0(cpu_env, cpu_A0);
5842 gen_helper_fbst_ST0(cpu_env, cpu_A0);
5843 gen_helper_fpop(cpu_env);
5848 gen_helper_fildll_ST0(cpu_env, cpu_tmp1_i64);
5851 gen_helper_fistll_ST0(cpu_tmp1_i64, cpu_env);
5854 gen_helper_fpop(cpu_env);
5865 gen_helper_fpush(cpu_env);
5866 gen_helper_fmov_ST0_STN(cpu_env,
5872 gen_helper_fxchg_ST0_STN(cpu_env, tcg_const_i32(opreg));
5880 gen_helper_fwait(cpu_env);
5889 gen_helper_fchs_ST0(cpu_env);
5892 gen_helper_fabs_ST0(cpu_env);
5895 gen_helper_fldz_FT0(cpu_env);
5896 gen_helper_fcom_ST0_FT0(cpu_env);
5899 gen_helper_fxam_ST0(cpu_env);
5909 gen_helper_fpush(cpu_env);
5910 gen_helper_fld1_ST0(cpu_env);
5913 gen_helper_fpush(cpu_env);
5914 gen_helper_fldl2t_ST0(cpu_env);
5917 gen_helper_fpush(cpu_env);
5918 gen_helper_fldl2e_ST0(cpu_env);
5921 gen_helper_fpush(cpu_env);
5922 gen_helper_fldpi_ST0(cpu_env);
5925 gen_helper_fpush(cpu_env);
5926 gen_helper_fldlg2_ST0(cpu_env);
5929 gen_helper_fpush(cpu_env);
5930 gen_helper_fldln2_ST0(cpu_env);
5933 gen_helper_fpush(cpu_env);
5934 gen_helper_fldz_ST0(cpu_env);
5944 gen_helper_f2xm1(cpu_env);
5947 gen_helper_fyl2x(cpu_env);
5950 gen_helper_fptan(cpu_env);
5953 gen_helper_fpatan(cpu_env);
5956 gen_helper_fxtract(cpu_env);
5959 gen_helper_fprem1(cpu_env);
5962 gen_helper_fdecstp(cpu_env);
5966 gen_helper_fincstp(cpu_env);
5973 gen_helper_fprem(cpu_env);
5976 gen_helper_fyl2xp1(cpu_env);
5979 gen_helper_fsqrt(cpu_env);
5982 gen_helper_fsincos(cpu_env);
5985 gen_helper_fscale(cpu_env);
5988 gen_helper_frndint(cpu_env);
5991 gen_helper_fsin(cpu_env);
5995 gen_helper_fcos(cpu_env);
6009 gen_helper_fpop(cpu_env);
6011 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6018 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6019 gen_helper_fcom_ST0_FT0(cpu_env);
6024 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6025 gen_helper_fcom_ST0_FT0(cpu_env);
6026 gen_helper_fpop(cpu_env);
6031 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(1));
6032 gen_helper_fucom_ST0_FT0(cpu_env);
6033 gen_helper_fpop(cpu_env);
6034 gen_helper_fpop(cpu_env);
6047 gen_helper_fclex(cpu_env);
6050 gen_helper_fninit(cpu_env);
6060 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6061 gen_helper_fucomi_ST0_FT0(cpu_env);
6066 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6067 gen_helper_fcomi_ST0_FT0(cpu_env);
6071 gen_helper_ffree_STN(cpu_env, tcg_const_i32(opreg));
6074 gen_helper_fmov_STN_ST0(cpu_env, tcg_const_i32(opreg));
6080 gen_helper_fmov_STN_ST0(cpu_env, tcg_const_i32(opreg));
6081 gen_helper_fpop(cpu_env);
6084 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6085 gen_helper_fucom_ST0_FT0(cpu_env);
6088 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6089 gen_helper_fucom_ST0_FT0(cpu_env);
6090 gen_helper_fpop(cpu_env);
6095 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(1));
6096 gen_helper_fcom_ST0_FT0(cpu_env);
6097 gen_helper_fpop(cpu_env);
6098 gen_helper_fpop(cpu_env);
6105 gen_helper_ffree_STN(cpu_env, tcg_const_i32(opreg));
6106 gen_helper_fpop(cpu_env);
6111 gen_helper_fnstsw(cpu_tmp2_i32, cpu_env);
6121 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6122 gen_helper_fucomi_ST0_FT0(cpu_env);
6123 gen_helper_fpop(cpu_env);
6128 gen_helper_fmov_FT0_STN(cpu_env, tcg_const_i32(opreg));
6129 gen_helper_fcomi_ST0_FT0(cpu_env);
6130 gen_helper_fpop(cpu_env);
6146 gen_helper_fmov_ST0_STN(cpu_env, tcg_const_i32(opreg));
6386 gen_helper_lret_protected(cpu_env, tcg_const_i32(s->dflag),
6413 gen_helper_iret_real(cpu_env, tcg_const_i32(s->dflag));
6419 gen_helper_iret_real(cpu_env, tcg_const_i32(s->dflag));
6425 gen_helper_iret_protected(cpu_env, tcg_const_i32(s->dflag),
6537 tcg_gen_st32_tl(t0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_L_OFFSET);
6540 tcg_gen_st32_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, regs[reg]) + REG_LH_OFFSET);
6561 gen_helper_read_eflags(cpu_T[0], cpu_env);
6573 gen_helper_write_eflags(cpu_env, cpu_T[0],
6579 gen_helper_write_eflags(cpu_env, cpu_T[0],
6588 gen_helper_write_eflags(cpu_env, cpu_T[0],
6595 gen_helper_write_eflags(cpu_env, cpu_T[0],
6605 gen_helper_write_eflags(cpu_env, cpu_T[0],
6609 gen_helper_write_eflags(cpu_env, cpu_T[0],
6654 tcg_gen_st_i32(cpu_tmp2_i32, cpu_env, offsetof(CPUX86State, df));
6658 tcg_gen_st_i32(cpu_tmp2_i32, cpu_env, offsetof(CPUX86State, df));
6784 gen_helper_daa(cpu_env);
6791 gen_helper_das(cpu_env);
6798 gen_helper_aaa(cpu_env);
6805 gen_helper_aas(cpu_env);
6815 gen_helper_aam(cpu_env, tcg_const_i32(val));
6823 gen_helper_aad(cpu_env, tcg_const_i32(val));
6845 gen_helper_fwait(cpu_env);
6864 gen_helper_into(cpu_env, tcg_const_i32(s->pc - pc_start));
6881 gen_helper_cli(cpu_env);
6887 gen_helper_cli(cpu_env);
6897 gen_helper_sti(cpu_env);
6902 gen_helper_set_inhibit_irq(cpu_env);
6931 gen_helper_boundw(cpu_env, cpu_A0, cpu_tmp2_i32);
6933 gen_helper_boundl(cpu_env, cpu_A0, cpu_tmp2_i32);
7011 gen_helper_rdmsr(cpu_env);
7013 gen_helper_wrmsr(cpu_env);
7022 gen_helper_rdtsc(cpu_env);
7031 gen_helper_rdpmc(cpu_env);
7042 gen_helper_sysenter(cpu_env);
7055 gen_helper_sysexit(cpu_env, tcg_const_i32(dflag));
7064 gen_helper_syscall(cpu_env, tcg_const_i32(s->pc - pc_start));
7073 gen_helper_sysret(cpu_env, tcg_const_i32(s->dflag));
7084 gen_helper_cpuid(cpu_env);
7092 gen_helper_hlt(cpu_env, tcg_const_i32(s->pc - pc_start));
7105 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,ldt.selector));
7121 gen_helper_lldt(cpu_env, cpu_tmp2_i32);
7128 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,tr.selector));
7144 gen_helper_ltr(cpu_env, cpu_tmp2_i32);
7154 gen_helper_verr(cpu_env, cpu_T[0]);
7156 gen_helper_verw(cpu_env, cpu_T[0]);
7175 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, gdt.limit));
7178 tcg_gen_ld_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, gdt.base));
7203 gen_helper_monitor(cpu_env, cpu_A0);
7211 gen_helper_mwait(cpu_env,
7221 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, idt.limit));
7224 tcg_gen_ld_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, idt.base));
7243 gen_helper_vmrun(cpu_env, tcg_const_i32(s->aflag),
7252 gen_helper_vmmcall(cpu_env);
7261 gen_helper_vmload(cpu_env, tcg_const_i32(s->aflag));
7271 gen_helper_vmsave(cpu_env, tcg_const_i32(s->aflag));
7283 gen_helper_stgi(cpu_env);
7293 gen_helper_clgi(cpu_env);
7301 gen_helper_skinit(cpu_env);
7310 gen_helper_invlpga(cpu_env, tcg_const_i32(s->aflag));
7328 tcg_gen_st_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,gdt.base));
7329 tcg_gen_st32_tl(cpu_T[1], cpu_env, offsetof(CPUX86State,gdt.limit));
7331 tcg_gen_st_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,idt.base));
7332 tcg_gen_st32_tl(cpu_T[1], cpu_env, offsetof(CPUX86State,idt.limit));
7339 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,cr[0]) + 4);
7341 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,cr[0]));
7351 gen_helper_lmsw(cpu_env, cpu_T[0]);
7364 tcg_gen_ld_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,segs[R_GS].base));
7365 tcg_gen_ld_tl(cpu_T[1], cpu_env, offsetof(CPUX86State,kernelgsbase));
7366 tcg_gen_st_tl(cpu_T[1], cpu_env, offsetof(CPUX86State,segs[R_GS].base));
7367 tcg_gen_st_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,kernelgsbase));
7377 gen_helper_invlpg(cpu_env, cpu_A0);
7482 gen_helper_lar(t0, cpu_env, cpu_T[0]);
7484 gen_helper_lsl(t0, cpu_env, cpu_T[0]);
7542 gen_helper_write_crN(cpu_env, tcg_const_i32(reg), cpu_T[0]);
7546 gen_helper_read_crN(cpu_T[0], cpu_env, tcg_const_i32(reg));
7575 gen_helper_movl_drN_T0(cpu_env, tcg_const_i32(reg), cpu_T[0]);
7580 tcg_gen_ld_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,dr[reg]));
7590 gen_helper_clts(cpu_env);
7625 gen_helper_fxsave(cpu_env, cpu_A0, tcg_const_i32((s->dflag == 2)));
7638 gen_helper_fxrstor(cpu_env, cpu_A0, tcg_const_i32((s->dflag == 2)));
7652 tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, mxcsr));
7654 tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State, mxcsr));
7694 gen_helper_rsm(cpu_env);
7715 gen_helper_popcnt(cpu_T[0], cpu_env, cpu_T[0], tcg_const_i32(ot));
7755 cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");