Fix interrupt exclusion via SSTEP_NOIRQ
[qemu/mini2440.git] / target-alpha / helper.h
bloba8c674c6eb8d0fc5b53e85bf59197cd3b8dfd119
1 #ifndef DEF_HELPER
2 #define DEF_HELPER(ret, name, params) ret name params;
3 #endif
5 DEF_HELPER(void, helper_tb_flush, (void))
7 DEF_HELPER(void, helper_excp, (int, int))
8 DEF_HELPER(uint64_t, helper_amask, (uint64_t))
9 DEF_HELPER(uint64_t, helper_load_pcc, (void))
10 DEF_HELPER(uint64_t, helper_load_implver, (void))
11 DEF_HELPER(uint64_t, helper_rc, (void))
12 DEF_HELPER(uint64_t, helper_rs, (void))
14 DEF_HELPER(uint64_t, helper_addqv, (uint64_t, uint64_t))
15 DEF_HELPER(uint64_t, helper_addlv, (uint64_t, uint64_t))
16 DEF_HELPER(uint64_t, helper_subqv, (uint64_t, uint64_t))
17 DEF_HELPER(uint64_t, helper_sublv, (uint64_t, uint64_t))
18 DEF_HELPER(uint64_t, helper_mullv, (uint64_t, uint64_t))
19 DEF_HELPER(uint64_t, helper_mulqv, (uint64_t, uint64_t))
20 DEF_HELPER(uint64_t, helper_umulh, (uint64_t, uint64_t))
22 DEF_HELPER(uint64_t, helper_ctpop, (uint64_t))
23 DEF_HELPER(uint64_t, helper_ctlz, (uint64_t))
24 DEF_HELPER(uint64_t, helper_cttz, (uint64_t))
26 DEF_HELPER(uint64_t, helper_mskbl, (int64_t, uint64_t))
27 DEF_HELPER(uint64_t, helper_insbl, (int64_t, uint64_t))
28 DEF_HELPER(uint64_t, helper_mskwl, (int64_t, uint64_t))
29 DEF_HELPER(uint64_t, helper_inswl, (int64_t, uint64_t))
30 DEF_HELPER(uint64_t, helper_mskll, (int64_t, uint64_t))
31 DEF_HELPER(uint64_t, helper_insll, (int64_t, uint64_t))
32 DEF_HELPER(uint64_t, helper_zap, (int64_t, uint64_t))
33 DEF_HELPER(uint64_t, helper_zapnot, (int64_t, uint64_t))
34 DEF_HELPER(uint64_t, helper_mskql, (int64_t, uint64_t))
35 DEF_HELPER(uint64_t, helper_insql, (int64_t, uint64_t))
36 DEF_HELPER(uint64_t, helper_mskwh, (int64_t, uint64_t))
37 DEF_HELPER(uint64_t, helper_inswh, (int64_t, uint64_t))
38 DEF_HELPER(uint64_t, helper_msklh, (int64_t, uint64_t))
39 DEF_HELPER(uint64_t, helper_inslh, (int64_t, uint64_t))
40 DEF_HELPER(uint64_t, helper_mskqh, (int64_t, uint64_t))
41 DEF_HELPER(uint64_t, helper_insqh, (int64_t, uint64_t))
43 DEF_HELPER(uint64_t, helper_cmpbge, (uint64_t, uint64_t))
45 DEF_HELPER(uint64_t, helper_load_fpcr, (void))
46 DEF_HELPER(void, helper_store_fpcr, (uint64_t val))
48 DEF_HELPER(uint32_t, helper_f_to_memory, (uint64_t s))
49 DEF_HELPER(uint64_t, helper_memory_to_f, (uint32_t s))
50 DEF_HELPER(uint64_t, helper_addf, (uint64_t, uint64_t))
51 DEF_HELPER(uint64_t, helper_subf, (uint64_t, uint64_t))
52 DEF_HELPER(uint64_t, helper_mulf, (uint64_t, uint64_t))
53 DEF_HELPER(uint64_t, helper_divf, (uint64_t, uint64_t))
54 DEF_HELPER(uint64_t, helper_sqrtf, (uint64_t))
56 DEF_HELPER(uint64_t, helper_g_to_memory, (uint64_t s))
57 DEF_HELPER(uint64_t, helper_memory_to_g, (uint64_t s))
58 DEF_HELPER(uint64_t, helper_addg, (uint64_t, uint64_t))
59 DEF_HELPER(uint64_t, helper_subg, (uint64_t, uint64_t))
60 DEF_HELPER(uint64_t, helper_mulg, (uint64_t, uint64_t))
61 DEF_HELPER(uint64_t, helper_divg, (uint64_t, uint64_t))
62 DEF_HELPER(uint64_t, helper_sqrtg, (uint64_t))
64 DEF_HELPER(uint32_t, helper_s_to_memory, (uint64_t s))
65 DEF_HELPER(uint64_t, helper_memory_to_s, (uint32_t s))
66 DEF_HELPER(uint64_t, helper_adds, (uint64_t, uint64_t))
67 DEF_HELPER(uint64_t, helper_subs, (uint64_t, uint64_t))
68 DEF_HELPER(uint64_t, helper_muls, (uint64_t, uint64_t))
69 DEF_HELPER(uint64_t, helper_divs, (uint64_t, uint64_t))
70 DEF_HELPER(uint64_t, helper_sqrts, (uint64_t))
72 DEF_HELPER(uint64_t, helper_addt, (uint64_t, uint64_t))
73 DEF_HELPER(uint64_t, helper_subt, (uint64_t, uint64_t))
74 DEF_HELPER(uint64_t, helper_mult, (uint64_t, uint64_t))
75 DEF_HELPER(uint64_t, helper_divt, (uint64_t, uint64_t))
76 DEF_HELPER(uint64_t, helper_sqrtt, (uint64_t))
78 DEF_HELPER(uint64_t, helper_cmptun, (uint64_t, uint64_t))
79 DEF_HELPER(uint64_t, helper_cmpteq, (uint64_t, uint64_t))
80 DEF_HELPER(uint64_t, helper_cmptle, (uint64_t, uint64_t))
81 DEF_HELPER(uint64_t, helper_cmptlt, (uint64_t, uint64_t))
82 DEF_HELPER(uint64_t, helper_cmpgeq, (uint64_t, uint64_t))
83 DEF_HELPER(uint64_t, helper_cmpgle, (uint64_t, uint64_t))
84 DEF_HELPER(uint64_t, helper_cmpglt, (uint64_t, uint64_t))
86 DEF_HELPER(uint64_t, helper_cmpfeq, (uint64_t))
87 DEF_HELPER(uint64_t, helper_cmpfne, (uint64_t))
88 DEF_HELPER(uint64_t, helper_cmpflt, (uint64_t))
89 DEF_HELPER(uint64_t, helper_cmpfle, (uint64_t))
90 DEF_HELPER(uint64_t, helper_cmpfgt, (uint64_t))
91 DEF_HELPER(uint64_t, helper_cmpfge, (uint64_t))
93 DEF_HELPER(uint64_t, helper_cpys, (uint64_t, uint64_t))
94 DEF_HELPER(uint64_t, helper_cpysn, (uint64_t, uint64_t))
95 DEF_HELPER(uint64_t, helper_cpyse, (uint64_t, uint64_t))
97 DEF_HELPER(uint64_t, helper_cvtts, (uint64_t))
98 DEF_HELPER(uint64_t, helper_cvtst, (uint64_t))
99 DEF_HELPER(uint64_t, helper_cvttq, (uint64_t))
100 DEF_HELPER(uint32_t, helper_cvtqs, (uint64_t))
101 DEF_HELPER(uint64_t, helper_cvtqt, (uint64_t))
102 DEF_HELPER(uint64_t, helper_cvtqf, (uint64_t))
103 DEF_HELPER(uint64_t, helper_cvtgf, (uint64_t))
104 DEF_HELPER(uint64_t, helper_cvtgq, (uint64_t))
105 DEF_HELPER(uint64_t, helper_cvtqg, (uint64_t))
106 DEF_HELPER(uint64_t, helper_cvtlq, (uint64_t))
107 DEF_HELPER(uint64_t, helper_cvtql, (uint64_t))
108 DEF_HELPER(uint64_t, helper_cvtqlv, (uint64_t))
109 DEF_HELPER(uint64_t, helper_cvtqlsv, (uint64_t))
111 #if !defined (CONFIG_USER_ONLY)
112 DEF_HELPER(void, helper_hw_rei, (void))
113 DEF_HELPER(void, helper_hw_ret, (uint64_t))
114 DEF_HELPER(uint64_t, helper_mfpr, (int, uint64_t))
115 DEF_HELPER(void, helper_mtpr, (int, uint64_t))
116 DEF_HELPER(void, helper_set_alt_mode, (void))
117 DEF_HELPER(void, helper_restore_mode, (void))
119 DEF_HELPER(uint64_t, helper_ld_virt_to_phys, (uint64_t))
120 DEF_HELPER(uint64_t, helper_st_virt_to_phys, (uint64_t))
121 DEF_HELPER(void, helper_ldl_raw, (uint64_t, uint64_t))
122 DEF_HELPER(void, helper_ldq_raw, (uint64_t, uint64_t))
123 DEF_HELPER(void, helper_ldl_l_raw, (uint64_t, uint64_t))
124 DEF_HELPER(void, helper_ldq_l_raw, (uint64_t, uint64_t))
125 DEF_HELPER(void, helper_ldl_kernel, (uint64_t, uint64_t))
126 DEF_HELPER(void, helper_ldq_kernel, (uint64_t, uint64_t))
127 DEF_HELPER(void, helper_ldl_data, (uint64_t, uint64_t))
128 DEF_HELPER(void, helper_ldq_data, (uint64_t, uint64_t))
129 DEF_HELPER(void, helper_stl_raw, (uint64_t, uint64_t))
130 DEF_HELPER(void, helper_stq_raw, (uint64_t, uint64_t))
131 DEF_HELPER(uint64_t, helper_stl_c_raw, (uint64_t, uint64_t))
132 DEF_HELPER(uint64_t, helper_stq_c_raw, (uint64_t, uint64_t))
133 #endif