blob: 2d483aab58b7a2cd74ccc9e469876baab33dcc8c [file] [log] [blame]
Richard Hendersoneaa37832017-10-09 12:35:48 -07001#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 Henderson61766fe2016-12-15 11:26:14 -080011DEF_HELPER_2(excp, noreturn, env, int)
Richard Hendersoneaa37832017-10-09 12:35:48 -070012DEF_HELPER_FLAGS_2(tsv, TCG_CALL_NO_WG, void, env, tr)
13DEF_HELPER_FLAGS_2(tcond, TCG_CALL_NO_WG, void, env, tr)
Richard Henderson61766fe2016-12-15 11:26:14 -080014
Richard Hendersoneaa37832017-10-09 12:35:48 -070015DEF_HELPER_FLAGS_3(stby_b, TCG_CALL_NO_WG, void, env, tl, tr)
16DEF_HELPER_FLAGS_3(stby_b_parallel, TCG_CALL_NO_WG, void, env, tl, tr)
17DEF_HELPER_FLAGS_3(stby_e, TCG_CALL_NO_WG, void, env, tl, tr)
18DEF_HELPER_FLAGS_3(stby_e_parallel, TCG_CALL_NO_WG, void, env, tl, tr)
Richard Henderson96d64072016-12-15 14:54:51 -080019
Richard Hendersonb1af7552020-01-16 15:46:38 -100020DEF_HELPER_FLAGS_1(ldc_check, TCG_CALL_NO_RWG, void, tl)
21
Richard Hendersoneed14212018-01-24 15:03:25 -080022DEF_HELPER_FLAGS_4(probe, TCG_CALL_NO_WG, tr, env, tl, i32, i32)
Richard Henderson98a9cb72016-12-15 14:59:03 -080023
Richard Henderson61766fe2016-12-15 11:26:14 -080024DEF_HELPER_FLAGS_1(loaded_fr0, TCG_CALL_NO_RWG, void, env)
Richard Hendersonebe93832016-12-15 15:04:19 -080025
26DEF_HELPER_FLAGS_2(fsqrt_s, TCG_CALL_NO_RWG, f32, env, f32)
27DEF_HELPER_FLAGS_2(frnd_s, TCG_CALL_NO_RWG, f32, env, f32)
28DEF_HELPER_FLAGS_3(fadd_s, TCG_CALL_NO_RWG, f32, env, f32, f32)
29DEF_HELPER_FLAGS_3(fsub_s, TCG_CALL_NO_RWG, f32, env, f32, f32)
30DEF_HELPER_FLAGS_3(fmpy_s, TCG_CALL_NO_RWG, f32, env, f32, f32)
31DEF_HELPER_FLAGS_3(fdiv_s, TCG_CALL_NO_RWG, f32, env, f32, f32)
32
33DEF_HELPER_FLAGS_2(fsqrt_d, TCG_CALL_NO_RWG, f64, env, f64)
34DEF_HELPER_FLAGS_2(frnd_d, TCG_CALL_NO_RWG, f64, env, f64)
35DEF_HELPER_FLAGS_3(fadd_d, TCG_CALL_NO_RWG, f64, env, f64, f64)
36DEF_HELPER_FLAGS_3(fsub_d, TCG_CALL_NO_RWG, f64, env, f64, f64)
37DEF_HELPER_FLAGS_3(fmpy_d, TCG_CALL_NO_RWG, f64, env, f64, f64)
38DEF_HELPER_FLAGS_3(fdiv_d, TCG_CALL_NO_RWG, f64, env, f64, f64)
39
40DEF_HELPER_FLAGS_2(fcnv_s_d, TCG_CALL_NO_RWG, f64, env, f32)
41DEF_HELPER_FLAGS_2(fcnv_d_s, TCG_CALL_NO_RWG, f32, env, f64)
42
43DEF_HELPER_FLAGS_2(fcnv_w_s, TCG_CALL_NO_RWG, f32, env, s32)
44DEF_HELPER_FLAGS_2(fcnv_dw_s, TCG_CALL_NO_RWG, f32, env, s64)
45DEF_HELPER_FLAGS_2(fcnv_w_d, TCG_CALL_NO_RWG, f64, env, s32)
46DEF_HELPER_FLAGS_2(fcnv_dw_d, TCG_CALL_NO_RWG, f64, env, s64)
47
48DEF_HELPER_FLAGS_2(fcnv_s_w, TCG_CALL_NO_RWG, s32, env, f32)
49DEF_HELPER_FLAGS_2(fcnv_d_w, TCG_CALL_NO_RWG, s32, env, f64)
50DEF_HELPER_FLAGS_2(fcnv_s_dw, TCG_CALL_NO_RWG, s64, env, f32)
51DEF_HELPER_FLAGS_2(fcnv_d_dw, TCG_CALL_NO_RWG, s64, env, f64)
52
53DEF_HELPER_FLAGS_2(fcnv_t_s_w, TCG_CALL_NO_RWG, s32, env, f32)
54DEF_HELPER_FLAGS_2(fcnv_t_d_w, TCG_CALL_NO_RWG, s32, env, f64)
55DEF_HELPER_FLAGS_2(fcnv_t_s_dw, TCG_CALL_NO_RWG, s64, env, f32)
56DEF_HELPER_FLAGS_2(fcnv_t_d_dw, TCG_CALL_NO_RWG, s64, env, f64)
57
58DEF_HELPER_FLAGS_2(fcnv_uw_s, TCG_CALL_NO_RWG, f32, env, i32)
59DEF_HELPER_FLAGS_2(fcnv_udw_s, TCG_CALL_NO_RWG, f32, env, i64)
60DEF_HELPER_FLAGS_2(fcnv_uw_d, TCG_CALL_NO_RWG, f64, env, i32)
61DEF_HELPER_FLAGS_2(fcnv_udw_d, TCG_CALL_NO_RWG, f64, env, i64)
62
63DEF_HELPER_FLAGS_2(fcnv_s_uw, TCG_CALL_NO_RWG, i32, env, f32)
64DEF_HELPER_FLAGS_2(fcnv_d_uw, TCG_CALL_NO_RWG, i32, env, f64)
65DEF_HELPER_FLAGS_2(fcnv_s_udw, TCG_CALL_NO_RWG, i64, env, f32)
66DEF_HELPER_FLAGS_2(fcnv_d_udw, TCG_CALL_NO_RWG, i64, env, f64)
67
68DEF_HELPER_FLAGS_2(fcnv_t_s_uw, TCG_CALL_NO_RWG, i32, env, f32)
69DEF_HELPER_FLAGS_2(fcnv_t_d_uw, TCG_CALL_NO_RWG, i32, env, f64)
70DEF_HELPER_FLAGS_2(fcnv_t_s_udw, TCG_CALL_NO_RWG, i64, env, f32)
71DEF_HELPER_FLAGS_2(fcnv_t_d_udw, TCG_CALL_NO_RWG, i64, env, f64)
72
73DEF_HELPER_FLAGS_5(fcmp_s, TCG_CALL_NO_RWG, void, env, f32, f32, i32, i32)
74DEF_HELPER_FLAGS_5(fcmp_d, TCG_CALL_NO_RWG, void, env, f64, f64, i32, i32)
75
76DEF_HELPER_FLAGS_4(fmpyfadd_s, TCG_CALL_NO_RWG, i32, env, i32, i32, i32)
77DEF_HELPER_FLAGS_4(fmpynfadd_s, TCG_CALL_NO_RWG, i32, env, i32, i32, i32)
78DEF_HELPER_FLAGS_4(fmpyfadd_d, TCG_CALL_NO_RWG, i64, env, i64, i64, i64)
79DEF_HELPER_FLAGS_4(fmpynfadd_d, TCG_CALL_NO_RWG, i64, env, i64, i64, i64)
Richard Hendersone1b5a5e2017-10-09 07:44:30 -070080
Richard Henderson49c29d62017-12-28 17:50:14 -080081DEF_HELPER_FLAGS_0(read_interval_timer, TCG_CALL_NO_RWG, tr)
82
Richard Hendersone1b5a5e2017-10-09 07:44:30 -070083#ifndef CONFIG_USER_ONLY
Helge Deller6210db02017-12-28 22:04:57 -080084DEF_HELPER_1(halt, noreturn, env)
85DEF_HELPER_1(reset, noreturn, env)
Richard Hendersonf49b3532017-10-11 08:54:49 -070086DEF_HELPER_1(rfi, void, env)
87DEF_HELPER_1(rfi_r, void, env)
Richard Henderson49c29d62017-12-28 17:50:14 -080088DEF_HELPER_FLAGS_2(write_interval_timer, TCG_CALL_NO_RWG, void, env, tr)
Richard Henderson4f5f2542017-12-28 17:36:45 -080089DEF_HELPER_FLAGS_2(write_eirr, TCG_CALL_NO_RWG, void, env, tr)
90DEF_HELPER_FLAGS_2(write_eiem, TCG_CALL_NO_RWG, void, env, tr)
Richard Hendersone1b5a5e2017-10-09 07:44:30 -070091DEF_HELPER_FLAGS_2(swap_system_mask, TCG_CALL_NO_RWG, tr, env, tr)
Richard Henderson8d6ae7f2017-10-27 16:26:36 +020092DEF_HELPER_FLAGS_3(itlba, TCG_CALL_NO_RWG, void, env, tl, tr)
93DEF_HELPER_FLAGS_3(itlbp, TCG_CALL_NO_RWG, void, env, tl, tr)
Richard Henderson63300a02017-10-27 18:33:23 +020094DEF_HELPER_FLAGS_2(ptlb, TCG_CALL_NO_RWG, void, env, tl)
95DEF_HELPER_FLAGS_1(ptlbe, TCG_CALL_NO_RWG, void, env)
Richard Henderson2dfcca92017-11-05 10:50:47 +010096DEF_HELPER_FLAGS_2(lpa, TCG_CALL_NO_WG, tr, env, tl)
Sven Schnelled5de20b2019-03-11 20:16:00 +010097DEF_HELPER_FLAGS_1(change_prot_id, TCG_CALL_NO_RWG, void, env)
Richard Hendersone1b5a5e2017-10-09 07:44:30 -070098#endif