Richard Henderson | eaa3783 | 2017-10-09 12:35:48 -0700 | [diff] [blame] | 1 | #if TARGET_REGISTER_BITS == 64 |
| 2 | # define dh_alias_tr i64 |
| 3 | # define dh_is_64bit_tr 1 |
| 4 | #else |
| 5 | # define dh_alias_tr i32 |
| 6 | # define dh_is_64bit_tr 0 |
| 7 | #endif |
| 8 | #define dh_ctype_tr target_ureg |
| 9 | #define dh_is_signed_tr 0 |
| 10 | |
Richard Henderson | 61766fe | 2016-12-15 11:26:14 -0800 | [diff] [blame] | 11 | DEF_HELPER_2(excp, noreturn, env, int) |
Richard Henderson | eaa3783 | 2017-10-09 12:35:48 -0700 | [diff] [blame] | 12 | DEF_HELPER_FLAGS_2(tsv, TCG_CALL_NO_WG, void, env, tr) |
| 13 | DEF_HELPER_FLAGS_2(tcond, TCG_CALL_NO_WG, void, env, tr) |
Richard Henderson | 61766fe | 2016-12-15 11:26:14 -0800 | [diff] [blame] | 14 | |
Richard Henderson | eaa3783 | 2017-10-09 12:35:48 -0700 | [diff] [blame] | 15 | DEF_HELPER_FLAGS_3(stby_b, TCG_CALL_NO_WG, void, env, tl, tr) |
| 16 | DEF_HELPER_FLAGS_3(stby_b_parallel, TCG_CALL_NO_WG, void, env, tl, tr) |
| 17 | DEF_HELPER_FLAGS_3(stby_e, TCG_CALL_NO_WG, void, env, tl, tr) |
| 18 | DEF_HELPER_FLAGS_3(stby_e_parallel, TCG_CALL_NO_WG, void, env, tl, tr) |
Richard Henderson | 96d6407 | 2016-12-15 14:54:51 -0800 | [diff] [blame] | 19 | |
Richard Henderson | b1af755 | 2020-01-16 15:46:38 -1000 | [diff] [blame] | 20 | DEF_HELPER_FLAGS_1(ldc_check, TCG_CALL_NO_RWG, void, tl) |
| 21 | |
Richard Henderson | eed1421 | 2018-01-24 15:03:25 -0800 | [diff] [blame] | 22 | DEF_HELPER_FLAGS_4(probe, TCG_CALL_NO_WG, tr, env, tl, i32, i32) |
Richard Henderson | 98a9cb7 | 2016-12-15 14:59:03 -0800 | [diff] [blame] | 23 | |
Richard Henderson | 61766fe | 2016-12-15 11:26:14 -0800 | [diff] [blame] | 24 | DEF_HELPER_FLAGS_1(loaded_fr0, TCG_CALL_NO_RWG, void, env) |
Richard Henderson | ebe9383 | 2016-12-15 15:04:19 -0800 | [diff] [blame] | 25 | |
| 26 | DEF_HELPER_FLAGS_2(fsqrt_s, TCG_CALL_NO_RWG, f32, env, f32) |
| 27 | DEF_HELPER_FLAGS_2(frnd_s, TCG_CALL_NO_RWG, f32, env, f32) |
| 28 | DEF_HELPER_FLAGS_3(fadd_s, TCG_CALL_NO_RWG, f32, env, f32, f32) |
| 29 | DEF_HELPER_FLAGS_3(fsub_s, TCG_CALL_NO_RWG, f32, env, f32, f32) |
| 30 | DEF_HELPER_FLAGS_3(fmpy_s, TCG_CALL_NO_RWG, f32, env, f32, f32) |
| 31 | DEF_HELPER_FLAGS_3(fdiv_s, TCG_CALL_NO_RWG, f32, env, f32, f32) |
| 32 | |
| 33 | DEF_HELPER_FLAGS_2(fsqrt_d, TCG_CALL_NO_RWG, f64, env, f64) |
| 34 | DEF_HELPER_FLAGS_2(frnd_d, TCG_CALL_NO_RWG, f64, env, f64) |
| 35 | DEF_HELPER_FLAGS_3(fadd_d, TCG_CALL_NO_RWG, f64, env, f64, f64) |
| 36 | DEF_HELPER_FLAGS_3(fsub_d, TCG_CALL_NO_RWG, f64, env, f64, f64) |
| 37 | DEF_HELPER_FLAGS_3(fmpy_d, TCG_CALL_NO_RWG, f64, env, f64, f64) |
| 38 | DEF_HELPER_FLAGS_3(fdiv_d, TCG_CALL_NO_RWG, f64, env, f64, f64) |
| 39 | |
| 40 | DEF_HELPER_FLAGS_2(fcnv_s_d, TCG_CALL_NO_RWG, f64, env, f32) |
| 41 | DEF_HELPER_FLAGS_2(fcnv_d_s, TCG_CALL_NO_RWG, f32, env, f64) |
| 42 | |
| 43 | DEF_HELPER_FLAGS_2(fcnv_w_s, TCG_CALL_NO_RWG, f32, env, s32) |
| 44 | DEF_HELPER_FLAGS_2(fcnv_dw_s, TCG_CALL_NO_RWG, f32, env, s64) |
| 45 | DEF_HELPER_FLAGS_2(fcnv_w_d, TCG_CALL_NO_RWG, f64, env, s32) |
| 46 | DEF_HELPER_FLAGS_2(fcnv_dw_d, TCG_CALL_NO_RWG, f64, env, s64) |
| 47 | |
| 48 | DEF_HELPER_FLAGS_2(fcnv_s_w, TCG_CALL_NO_RWG, s32, env, f32) |
| 49 | DEF_HELPER_FLAGS_2(fcnv_d_w, TCG_CALL_NO_RWG, s32, env, f64) |
| 50 | DEF_HELPER_FLAGS_2(fcnv_s_dw, TCG_CALL_NO_RWG, s64, env, f32) |
| 51 | DEF_HELPER_FLAGS_2(fcnv_d_dw, TCG_CALL_NO_RWG, s64, env, f64) |
| 52 | |
| 53 | DEF_HELPER_FLAGS_2(fcnv_t_s_w, TCG_CALL_NO_RWG, s32, env, f32) |
| 54 | DEF_HELPER_FLAGS_2(fcnv_t_d_w, TCG_CALL_NO_RWG, s32, env, f64) |
| 55 | DEF_HELPER_FLAGS_2(fcnv_t_s_dw, TCG_CALL_NO_RWG, s64, env, f32) |
| 56 | DEF_HELPER_FLAGS_2(fcnv_t_d_dw, TCG_CALL_NO_RWG, s64, env, f64) |
| 57 | |
| 58 | DEF_HELPER_FLAGS_2(fcnv_uw_s, TCG_CALL_NO_RWG, f32, env, i32) |
| 59 | DEF_HELPER_FLAGS_2(fcnv_udw_s, TCG_CALL_NO_RWG, f32, env, i64) |
| 60 | DEF_HELPER_FLAGS_2(fcnv_uw_d, TCG_CALL_NO_RWG, f64, env, i32) |
| 61 | DEF_HELPER_FLAGS_2(fcnv_udw_d, TCG_CALL_NO_RWG, f64, env, i64) |
| 62 | |
| 63 | DEF_HELPER_FLAGS_2(fcnv_s_uw, TCG_CALL_NO_RWG, i32, env, f32) |
| 64 | DEF_HELPER_FLAGS_2(fcnv_d_uw, TCG_CALL_NO_RWG, i32, env, f64) |
| 65 | DEF_HELPER_FLAGS_2(fcnv_s_udw, TCG_CALL_NO_RWG, i64, env, f32) |
| 66 | DEF_HELPER_FLAGS_2(fcnv_d_udw, TCG_CALL_NO_RWG, i64, env, f64) |
| 67 | |
| 68 | DEF_HELPER_FLAGS_2(fcnv_t_s_uw, TCG_CALL_NO_RWG, i32, env, f32) |
| 69 | DEF_HELPER_FLAGS_2(fcnv_t_d_uw, TCG_CALL_NO_RWG, i32, env, f64) |
| 70 | DEF_HELPER_FLAGS_2(fcnv_t_s_udw, TCG_CALL_NO_RWG, i64, env, f32) |
| 71 | DEF_HELPER_FLAGS_2(fcnv_t_d_udw, TCG_CALL_NO_RWG, i64, env, f64) |
| 72 | |
| 73 | DEF_HELPER_FLAGS_5(fcmp_s, TCG_CALL_NO_RWG, void, env, f32, f32, i32, i32) |
| 74 | DEF_HELPER_FLAGS_5(fcmp_d, TCG_CALL_NO_RWG, void, env, f64, f64, i32, i32) |
| 75 | |
| 76 | DEF_HELPER_FLAGS_4(fmpyfadd_s, TCG_CALL_NO_RWG, i32, env, i32, i32, i32) |
| 77 | DEF_HELPER_FLAGS_4(fmpynfadd_s, TCG_CALL_NO_RWG, i32, env, i32, i32, i32) |
| 78 | DEF_HELPER_FLAGS_4(fmpyfadd_d, TCG_CALL_NO_RWG, i64, env, i64, i64, i64) |
| 79 | DEF_HELPER_FLAGS_4(fmpynfadd_d, TCG_CALL_NO_RWG, i64, env, i64, i64, i64) |
Richard Henderson | e1b5a5e | 2017-10-09 07:44:30 -0700 | [diff] [blame] | 80 | |
Richard Henderson | 49c29d6 | 2017-12-28 17:50:14 -0800 | [diff] [blame] | 81 | DEF_HELPER_FLAGS_0(read_interval_timer, TCG_CALL_NO_RWG, tr) |
| 82 | |
Richard Henderson | e1b5a5e | 2017-10-09 07:44:30 -0700 | [diff] [blame] | 83 | #ifndef CONFIG_USER_ONLY |
Helge Deller | 6210db0 | 2017-12-28 22:04:57 -0800 | [diff] [blame] | 84 | DEF_HELPER_1(halt, noreturn, env) |
| 85 | DEF_HELPER_1(reset, noreturn, env) |
Richard Henderson | f49b353 | 2017-10-11 08:54:49 -0700 | [diff] [blame] | 86 | DEF_HELPER_1(rfi, void, env) |
| 87 | DEF_HELPER_1(rfi_r, void, env) |
Richard Henderson | 49c29d6 | 2017-12-28 17:50:14 -0800 | [diff] [blame] | 88 | DEF_HELPER_FLAGS_2(write_interval_timer, TCG_CALL_NO_RWG, void, env, tr) |
Richard Henderson | 4f5f254 | 2017-12-28 17:36:45 -0800 | [diff] [blame] | 89 | DEF_HELPER_FLAGS_2(write_eirr, TCG_CALL_NO_RWG, void, env, tr) |
| 90 | DEF_HELPER_FLAGS_2(write_eiem, TCG_CALL_NO_RWG, void, env, tr) |
Richard Henderson | e1b5a5e | 2017-10-09 07:44:30 -0700 | [diff] [blame] | 91 | DEF_HELPER_FLAGS_2(swap_system_mask, TCG_CALL_NO_RWG, tr, env, tr) |
Richard Henderson | 8d6ae7f | 2017-10-27 16:26:36 +0200 | [diff] [blame] | 92 | DEF_HELPER_FLAGS_3(itlba, TCG_CALL_NO_RWG, void, env, tl, tr) |
| 93 | DEF_HELPER_FLAGS_3(itlbp, TCG_CALL_NO_RWG, void, env, tl, tr) |
Richard Henderson | 63300a0 | 2017-10-27 18:33:23 +0200 | [diff] [blame] | 94 | DEF_HELPER_FLAGS_2(ptlb, TCG_CALL_NO_RWG, void, env, tl) |
| 95 | DEF_HELPER_FLAGS_1(ptlbe, TCG_CALL_NO_RWG, void, env) |
Richard Henderson | 2dfcca9 | 2017-11-05 10:50:47 +0100 | [diff] [blame] | 96 | DEF_HELPER_FLAGS_2(lpa, TCG_CALL_NO_WG, tr, env, tl) |
Sven Schnelle | d5de20b | 2019-03-11 20:16:00 +0100 | [diff] [blame] | 97 | DEF_HELPER_FLAGS_1(change_prot_id, TCG_CALL_NO_RWG, void, env) |
Richard Henderson | e1b5a5e | 2017-10-09 07:44:30 -0700 | [diff] [blame] | 98 | #endif |