Home | History | Annotate | Download | only in target-arm

Lines Matching defs:cpu_env

85 static TCGv_ptr cpu_env;
112 cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
136 tcg_gen_ld_i32(tmp, cpu_env, offset);
144 tcg_gen_st_i32(var, cpu_env, offset);
200 gen_helper_cpsr_write(cpu_env, var, tmp_mask);
210 gen_helper_exception(cpu_env, tmp);
370 #define gen_set_CF(var) tcg_gen_st_i32(var, cpu_env, offsetof(CPUARMState, CF))
384 tcg_gen_st_i32(var, cpu_env, offsetof(CPUARMState, NF));
385 tcg_gen_st_i32(var, cpu_env, offsetof(CPUARMState, ZF));
491 case 0: gen_helper_shl_cc(var, cpu_env, var, shift); break;
492 case 1: gen_helper_shr_cc(var, cpu_env, var, shift); break;
493 case 2: gen_helper_sar_cc(var, cpu_env, var, shift); break;
494 case 3: gen_helper_ror_cc(var, cpu_env, var, shift); break;
525 tcg_gen_addi_ptr(tmp, cpu_env, offsetof(CPUARMState, GE));
531 tcg_gen_addi_ptr(tmp, cpu_env, offsetof(CPUARMState, GE));
572 cpu_env, offsetof(CPUARMState, GE));
578 tcg_gen_addi_ptr(tmp, cpu_env, offsetof(CPUARMState, GE));
727 tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUARMState, thumb));
909 tcg_gen_addi_ptr(statusptr, cpu_env, offset);
972 gen_helper_vfp_sqrtd(cpu_F0d, cpu_F0d, cpu_env);
974 gen_helper_vfp_sqrts(cpu_F0s, cpu_F0s, cpu_env);
980 gen_helper_vfp_cmpd(cpu_F0d, cpu_F1d, cpu_env);
982 gen_helper_vfp_cmps(cpu_F0s, cpu_F1s, cpu_env);
988 gen_helper_vfp_cmped(cpu_F0d, cpu_F1d, cpu_env);
990 gen_helper_vfp_cmpes(cpu_F0s, cpu_F1s, cpu_env);
1101 tcg_gen_ld_i32(tmp, cpu_env, neon_reg_offset(reg, pass));
1107 tcg_gen_st_i32(var, cpu_env, neon_reg_offset(reg, pass));
1113 tcg_gen_ld_i64(var, cpu_env, vfp_reg_offset(1, reg));
1118 tcg_gen_st_i64(var, cpu_env, vfp_reg_offset(1, reg));
1129 tcg_gen_ld_f64(cpu_F0d, cpu_env, vfp_reg_offset(dp, reg));
1131 tcg_gen_ld_f32(cpu_F0s, cpu_env, vfp_reg_offset(dp, reg));
1137 tcg_gen_ld_f64(cpu_F1d, cpu_env, vfp_reg_offset(dp, reg));
1139 tcg_gen_ld_f32(cpu_F1s, cpu_env, vfp_reg_offset(dp, reg));
1145 tcg_gen_st_f64(cpu_F0d, cpu_env, vfp_reg_offset(dp, reg));
1147 tcg_gen_st_f32(cpu_F0s, cpu_env, vfp_reg_offset(dp, reg));
1154 tcg_gen_ld_i64(var, cpu_env, offsetof(CPUARMState, iwmmxt.regs[reg]));
1159 tcg_gen_st_i64(var, cpu_env, offsetof(CPUARMState, iwmmxt.regs[reg]));
1165 tcg_gen_ld_i32(var, cpu_env, offsetof(CPUARMState, iwmmxt.cregs[reg]));
1171 tcg_gen_st_i32(var, cpu_env, offsetof(CPUARMState, iwmmxt.cregs[reg]));
1214 gen_helper_iwmmxt_##name(cpu_M0, cpu_env, cpu_M0, cpu_V1); \
1225 gen_helper_iwmmxt_##name(cpu_M0, cpu_env, cpu_M0); \
2017 gen_helper_iwmmxt_srlw(cpu_M0, cpu_env, cpu_M0, tmp);
2020 gen_helper_iwmmxt_srll(cpu_M0, cpu_env, cpu_M0, tmp);
2023 gen_helper_iwmmxt_srlq(cpu_M0, cpu_env, cpu_M0, tmp);
2045 gen_helper_iwmmxt_sraw(cpu_M0, cpu_env, cpu_M0, tmp);
2048 gen_helper_iwmmxt_sral(cpu_M0, cpu_env, cpu_M0, tmp);
2051 gen_helper_iwmmxt_sraq(cpu_M0, cpu_env, cpu_M0, tmp);
2073 gen_helper_iwmmxt_sllw(cpu_M0, cpu_env, cpu_M0, tmp);
2076 gen_helper_iwmmxt_slll(cpu_M0, cpu_env, cpu_M0, tmp);
2079 gen_helper_iwmmxt_sllq(cpu_M0, cpu_env, cpu_M0, tmp);
2101 gen_helper_iwmmxt_rorw(cpu_M0, cpu_env, cpu_M0, tmp);
2108 gen_helper_iwmmxt_rorl(cpu_M0, cpu_env, cpu_M0, tmp);
2115 gen_helper_iwmmxt_rorq(cpu_M0, cpu_env, cpu_M0, tmp);
2249 gen_helper_iwmmxt_shufh(cpu_M0, cpu_env, cpu_M0, tmp);
2459 gen_helper_get_cp(tmp, cpu_env, tmp2);
2468 gen_helper_set_cp(cpu_env, tmp2, tmp);
2641 gen_helper_get_cp15(tmp, cpu_env, tmp2);
2649 gen_helper_set_cp15(cpu_env, tmp2, tmp);
2904 gen_helper_vfp_get_fpscr(tmp, cpu_env);
2941 gen_helper_vfp_set_fpscr(cpu_env, tmp);
3184 gen_helper_vfp_fcvt_f16_to_f32(cpu_F0s, tmp, cpu_env);
3190 gen_helper_vfp_fcvt_f16_to_f32(cpu_F0s, tmp, cpu_env);
3195 gen_helper_vfp_fcvt_f32_to_f16(tmp, cpu_F0s, cpu_env);
3205 gen_helper_vfp_fcvt_f32_to_f16(tmp, cpu_F0s, cpu_env);
3229 gen_helper_vfp_fcvtsd(cpu_F0s, cpu_F0d, cpu_env);
3231 gen_helper_vfp_fcvtds(cpu_F0d, cpu_F0s, cpu_env);
3691 gen_helper_neon_##name##_s8(tmp, cpu_env, tmp, tmp2); \
3694 gen_helper_neon_##name##_u8(tmp, cpu_env, tmp, tmp2); \
3697 gen_helper_neon_##name##_s16(tmp, cpu_env, tmp, tmp2); \
3700 gen_helper_neon_##name##_u16(tmp, cpu_env, tmp, tmp2); \
3703 gen_helper_neon_##name##_s32(tmp, cpu_env, tmp, tmp2); \
3706 gen_helper_neon_##name##_u32(tmp, cpu_env, tmp, tmp2); \
3737 tcg_gen_ld_i32(tmp, cpu_env, offsetof(CPUARMState, vfp.scratch[scratch]));
3743 tcg_gen_st_i32(var, cpu_env, offsetof(CPUARMState, vfp.scratch[scratch]));
3774 gen_helper_neon_qunzip8(cpu_env, tmp, tmp2);
3777 gen_helper_neon_qunzip16(cpu_env, tmp, tmp2);
3780 gen_helper_neon_qunzip32(cpu_env, tmp, tmp2);
3788 gen_helper_neon_unzip8(cpu_env, tmp, tmp2);
3791 gen_helper_neon_unzip16(cpu_env, tmp, tmp2);
3813 gen_helper_neon_qzip8(cpu_env, tmp, tmp2);
3816 gen_helper_neon_qzip16(cpu_env, tmp, tmp2);
3819 gen_helper_neon_qzip32(cpu_env, tmp, tmp2);
3827 gen_helper_neon_zip8(cpu_env, tmp, tmp2);
3830 gen_helper_neon_zip16(cpu_env, tmp, tmp2);
3954 gen_helper_neon_vldst_all(cpu_env, addr);
3986 tcg_gen_st_i32(tmp, cpu_env, neon_reg_offset(rd, 0));
3987 tcg_gen_st_i32(tmp, cpu_env, neon_reg_offset(rd, 1));
3989 tcg_gen_st_i32(tmp, cpu_env, neon_reg_offset(rd + 1, 0));
3990 tcg_gen_st_i32(tmp, cpu_env, neon_reg_offset(rd + 1, 1));
3998 tcg_gen_st_i32(tmp, cpu_env, neon_reg_offset(rd, 0));
3999 tcg_gen_st_i32(tmp, cpu_env, neon_reg_offset(rd, 1));
4145 case 0: gen_helper_neon_narrow_sat_s8(dest, cpu_env, src); break;
4146 case 1: gen_helper_neon_narrow_sat_s16(dest, cpu_env, src); break;
4147 case 2: gen_helper_neon_narrow_sat_s32(dest, cpu_env, src); break;
4155 case 0: gen_helper_neon_narrow_sat_u8(dest, cpu_env, src); break;
4156 case 1: gen_helper_neon_narrow_sat_u16(dest, cpu_env, src); break;
4157 case 2: gen_helper_neon_narrow_sat_u32(dest, cpu_env, src); break;
4165 case 0: gen_helper_neon_unarrow_sat8(dest, cpu_env, src); break;
4166 case 1: gen_helper_neon_unarrow_sat16(dest, cpu_env, src); break;
4167 case 2: gen_helper_neon_unarrow_sat32(dest, cpu_env, src); break;
4259 case 1: gen_helper_neon_addl_saturate_s32(op0, cpu_env, op0, op1); break;
4260 case 2: gen_helper_neon_addl_saturate_s64(op0, cpu_env, op0, op1); break;
4536 gen_helper_neon_qadd_u64(cpu_V0, cpu_env,
4539 gen_helper_neon_qadd_s64(cpu_V0, cpu_env,
4545 gen_helper_neon_qsub_u64(cpu_V0, cpu_env,
4548 gen_helper_neon_qsub_s64(cpu_V0, cpu_env,
4561 gen_helper_neon_qshl_u64(cpu_V0, cpu_env,
4564 gen_helper_neon_qshl_s64(cpu_V0, cpu_env,
4577 gen_helper_neon_qrshl_u64(cpu_V0, cpu_env,
4580 gen_helper_neon_qrshl_s64(cpu_V0, cpu_env,
4823 gen_helper_neon_qdmulh_s16(tmp, cpu_env, tmp, tmp2);
4826 gen_helper_neon_qdmulh_s32(tmp, cpu_env, tmp, tmp2);
4833 gen_helper_neon_qrdmulh_s16(tmp, cpu_env, tmp, tmp2);
4836 gen_helper_neon_qrdmulh_s32(tmp, cpu_env, tmp, tmp2);
4925 gen_helper_recps_f32(tmp, tmp, tmp2, cpu_env);
4927 gen_helper_rsqrts_f32(tmp, tmp, tmp2, cpu_env);
5029 gen_helper_neon_qshlu_s64(cpu_V0, cpu_env,
5034 gen_helper_neon_qshl_u64(cpu_V0, cpu_env,
5037 gen_helper_neon_qshl_s64(cpu_V0, cpu_env,
5088 gen_helper_neon_qshlu_s8(tmp, cpu_env,
5092 gen_helper_neon_qshlu_s16(tmp, cpu_env,
5096 gen_helper_neon_qshlu_s32(tmp, cpu_env,
5280 tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, pass));
5292 tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, pass));
5613 gen_helper_neon_qdmulh_s16(tmp, cpu_env, tmp, tmp2);
5615 gen_helper_neon_qdmulh_s32(tmp, cpu_env, tmp, tmp2);
5619 gen_helper_neon_qrdmulh_s16(tmp, cpu_env, tmp, tmp2);
5621 gen_helper_neon_qrdmulh_s32(tmp, cpu_env, tmp, tmp2);
5907 tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 0));
5908 gen_helper_neon_fcvt_f32_to_f16(tmp, cpu_F0s, cpu_env);
5909 tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 1));
5910 gen_helper_neon_fcvt_f32_to_f16(tmp2, cpu_F0s, cpu_env);
5913 tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 2));
5914 gen_helper_neon_fcvt_f32_to_f16(tmp, cpu_F0s, cpu_env);
5915 tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 3));
5918 gen_helper_neon_fcvt_f32_to_f16(tmp2, cpu_F0s, cpu_env);
5933 gen_helper_neon_fcvt_f16_to_f32(cpu_F0s, tmp3, cpu_env);
5934 tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 0));
5936 gen_helper_neon_fcvt_f16_to_f32(cpu_F0s, tmp3, cpu_env);
5937 tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 1));
5940 gen_helper_neon_fcvt_f16_to_f32(cpu_F0s, tmp3, cpu_env);
5941 tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 2));
5943 gen_helper_neon_fcvt_f16_to_f32(cpu_F0s, tmp3, cpu_env);
5944 tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 3));
5952 tcg_gen_ld_f32(cpu_F0s, cpu_env,
5994 gen_helper_neon_qabs_s8(tmp, cpu_env, tmp);
5997 gen_helper_neon_qabs_s16(tmp, cpu_env, tmp);
6000 gen_helper_neon_qabs_s32(tmp, cpu_env, tmp);
6008 gen_helper_neon_qneg_s8(tmp, cpu_env, tmp);
6011 gen_helper_neon_qneg_s16(tmp, cpu_env, tmp);
6014 gen_helper_neon_qneg_s32(tmp, cpu_env, tmp);
6132 gen_helper_recpe_u32(tmp, tmp, cpu_env);
6135 gen_helper_rsqrte_u32(tmp, tmp, cpu_env);
6138 gen_helper_recpe_f32(cpu_F0s, cpu_F0s, cpu_env);
6141 gen_helper_rsqrte_f32(cpu_F0s, cpu_F0s, cpu_env);
6162 tcg_gen_st_f32(cpu_F0s, cpu_env,
6189 gen_helper_neon_tbl(tmp2, cpu_env, tmp2, tmp, tmp4, tmp5);
6198 gen_helper_neon_tbl(tmp3, cpu_env, tmp3, tmp, tmp4, tmp5);
6335 gen_helper_set_teecr(cpu_env, tmp);
6673 gen_helper_get_r13_banked(addr, cpu_env, tmp);
6702 gen_helper_set_r13_banked(cpu_env, tmp, addr);
6870 gen_helper_cpsr_read(tmp, cpu_env);
6921 gen_helper_double_saturate(tmp2, cpu_env, tmp2);
6923 gen_helper_sub_saturate(tmp, cpu_env, tmp, tmp2);
6925 gen_helper_add_saturate(tmp, cpu_env, tmp, tmp2);
6967 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
6987 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
7061 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
7065 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
7074 gen_helper_sub_cc(tmp, cpu_env, tmp2, tmp);
7082 gen_helper_add_cc(tmp, cpu_env, tmp, tmp2);
7090 gen_helper_adc_cc(tmp, cpu_env, tmp, tmp2);
7098 gen_helper_sbc_cc(tmp, cpu_env, tmp, tmp2);
7106 gen_helper_sbc_cc(tmp, cpu_env, tmp2, tmp);
7128 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
7134 gen_helper_add_cc(tmp, cpu_env, tmp, tmp2);
7451 gen_helper_usat(tmp, cpu_env, tmp, tmp2);
7453 gen_helper_ssat(tmp, cpu_env, tmp, tmp2);
7462 gen_helper_usat16(tmp, cpu_env, tmp, tmp2);
7464 gen_helper_ssat16(tmp, cpu_env, tmp, tmp2);
7472 tcg_gen_ld_i32(tmp3, cpu_env, offsetof(CPUARMState, GE));
7561 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
7577 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
7741 gen_helper_set_user_reg(cpu_env, tmp2, tmp);
7760 gen_helper_get_user_reg(tmp, cpu_env, tmp2);
7888 gen_helper_add_cc(t0, cpu_env, t0, t1);
7894 gen_helper_adc_cc(t0, cpu_env, t0, t1);
7900 gen_helper_sbc_cc(t0, cpu_env, t0, t1);
7906 gen_helper_sub_cc(t0, cpu_env, t0, t1);
7912 gen_helper_sub_cc(t0, cpu_env, t1, t0);
8125 gen_helper_get_r13_banked(addr, cpu_env, tmp);
8134 gen_helper_cpsr_read(tmp, cpu_env);
8143 gen_helper_set_r13_banked(cpu_env, tmp, addr);
8318 gen_helper_double_saturate(tmp, cpu_env, tmp);
8320 gen_helper_sub_saturate(tmp, cpu_env, tmp2, tmp);
8322 gen_helper_add_saturate(tmp, cpu_env, tmp, tmp2);
8342 tcg_gen_ld_i32(tmp3, cpu_env, offsetof(CPUARMState, GE));
8378 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
8395 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
8401 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
8418 gen_helper_add_setq(tmp, cpu_env, tmp, tmp2);
8577 gen_helper_v7m_msr(cpu_env, addr, tmp);
8656 gen_helper_v7m_mrs(tmp, cpu_env, addr);
8659 gen_helper_cpsr_read(tmp, cpu_env);
8748 gen_helper_usat16(tmp, cpu_env, tmp, tmp2);
8750 gen_helper_usat(tmp, cpu_env, tmp, tmp2);
8754 gen_helper_ssat16(tmp, cpu_env, tmp, tmp2);
8756 gen_helper_ssat(tmp, cpu_env, tmp, tmp2);
9043 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
9048 gen_helper_add_cc(tmp, cpu_env, tmp, tmp2);
9079 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
9087 gen_helper_add_cc(tmp, cpu_env, tmp, tmp2);
9095 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
9131 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
9194 gen_helper_shl_cc(tmp2, cpu_env, tmp2, tmp);
9202 gen_helper_shr_cc(tmp2, cpu_env, tmp2, tmp);
9210 gen_helper_sar_cc(tmp2, cpu_env, tmp2, tmp);
9218 gen_helper_adc_cc(tmp, cpu_env, tmp, tmp2);
9224 gen_helper_sbc_cc(tmp, cpu_env, tmp, tmp2);
9231 gen_helper_ror_cc(tmp2, cpu_env, tmp2, tmp);
9244 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
9247 gen_helper_sub_cc(tmp, cpu_env, tmp, tmp2);
9251 gen_helper_add_cc(tmp, cpu_env, tmp, tmp2);
9570 gen_helper_v7m_msr(cpu_env, addr, tmp);
9576 gen_helper_v7m_msr(cpu_env, addr, tmp);
9928 gen_helper_wfi(cpu_env);