Statistics
| Branch: | Revision:

root / target-sparc / helper.h @ 3a3b925d

History | View | Annotate | Download (6.7 kB)

1 c9e03d8f blueswir1
#ifndef DEF_HELPER
2 c9e03d8f blueswir1
#define DEF_HELPER(ret, name, params) ret name params;
3 c9e03d8f blueswir1
#endif
4 1a2fb1c0 blueswir1
5 1a2fb1c0 blueswir1
#ifndef TARGET_SPARC64
6 c9e03d8f blueswir1
DEF_HELPER(void, helper_rett, (void))
7 c9e03d8f blueswir1
DEF_HELPER(void, helper_wrpsr, (target_ulong new_psr))
8 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_rdpsr, (void))
9 1a2fb1c0 blueswir1
#else
10 c9e03d8f blueswir1
DEF_HELPER(void, helper_wrpstate, (target_ulong new_state))
11 c9e03d8f blueswir1
DEF_HELPER(void, helper_done, (void))
12 c9e03d8f blueswir1
DEF_HELPER(void, helper_retry, (void))
13 c9e03d8f blueswir1
DEF_HELPER(void, helper_flushw, (void))
14 c9e03d8f blueswir1
DEF_HELPER(void, helper_saved, (void))
15 c9e03d8f blueswir1
DEF_HELPER(void, helper_restored, (void))
16 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_rdccr, (void))
17 c9e03d8f blueswir1
DEF_HELPER(void, helper_wrccr, (target_ulong new_ccr))
18 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_rdcwp, (void))
19 c9e03d8f blueswir1
DEF_HELPER(void, helper_wrcwp, (target_ulong new_cwp))
20 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_array8, (target_ulong pixel_addr, \
21 c9e03d8f blueswir1
                                         target_ulong cubesize))
22 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_alignaddr, (target_ulong addr, \
23 c9e03d8f blueswir1
                                            target_ulong offset))
24 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_popc, (target_ulong val))
25 db166940 blueswir1
DEF_HELPER(void, helper_ldda_asi, (target_ulong addr, int asi, int rd))
26 c9e03d8f blueswir1
DEF_HELPER(void, helper_ldf_asi, (target_ulong addr, int asi, int size, int rd))
27 c9e03d8f blueswir1
DEF_HELPER(void, helper_stf_asi, (target_ulong addr, int asi, int size, int rd))
28 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_cas_asi, (target_ulong addr, \
29 c9e03d8f blueswir1
                                          target_ulong val1, \
30 c9e03d8f blueswir1
                                          target_ulong val2, uint32_t asi))
31 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_casx_asi, (target_ulong addr, \
32 c9e03d8f blueswir1
                                           target_ulong val1, \
33 c9e03d8f blueswir1
                                           target_ulong val2, uint32_t asi))
34 c9e03d8f blueswir1
DEF_HELPER(void, helper_tick_set_count, (void *opaque, uint64_t count))
35 c9e03d8f blueswir1
DEF_HELPER(uint64_t, helper_tick_get_count, (void *opaque))
36 c9e03d8f blueswir1
DEF_HELPER(void, helper_tick_set_limit, (void *opaque, uint64_t limit))
37 c9e03d8f blueswir1
#endif
38 c9e03d8f blueswir1
DEF_HELPER(void, helper_trap, (target_ulong nb_trap))
39 c9e03d8f blueswir1
DEF_HELPER(void, helper_trapcc, (target_ulong nb_trap, target_ulong do_trap))
40 c9e03d8f blueswir1
DEF_HELPER(void, helper_check_align, (target_ulong addr, uint32_t align))
41 c9e03d8f blueswir1
DEF_HELPER(void, helper_debug, (void))
42 c9e03d8f blueswir1
DEF_HELPER(void, helper_save, (void))
43 c9e03d8f blueswir1
DEF_HELPER(void, helper_restore, (void))
44 c9e03d8f blueswir1
DEF_HELPER(void, helper_flush, (target_ulong addr))
45 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_udiv, (target_ulong a, target_ulong b))
46 c9e03d8f blueswir1
DEF_HELPER(target_ulong, helper_sdiv, (target_ulong a, target_ulong b))
47 c9e03d8f blueswir1
DEF_HELPER(uint64_t, helper_pack64, (target_ulong high, target_ulong low))
48 c9e03d8f blueswir1
DEF_HELPER(void, helper_stdf, (target_ulong addr, int mem_idx))
49 c9e03d8f blueswir1
DEF_HELPER(void, helper_lddf, (target_ulong addr, int mem_idx))
50 c9e03d8f blueswir1
DEF_HELPER(void, helper_ldqf, (target_ulong addr, int mem_idx))
51 c9e03d8f blueswir1
DEF_HELPER(void, helper_stqf, (target_ulong addr, int mem_idx))
52 c9e03d8f blueswir1
#if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
53 c9e03d8f blueswir1
DEF_HELPER(uint64_t, helper_ld_asi, (target_ulong addr, int asi, int size, \
54 c9e03d8f blueswir1
                                     int sign))
55 c9e03d8f blueswir1
DEF_HELPER(void, helper_st_asi, (target_ulong addr, uint64_t val, int asi, \
56 c9e03d8f blueswir1
                                 int size))
57 1a2fb1c0 blueswir1
#endif
58 3a3b925d blueswir1
DEF_HELPER(void, helper_ldfsr, (uint32_t new_fsr))
59 c9e03d8f blueswir1
DEF_HELPER(void, helper_check_ieee_exceptions, (void))
60 c9e03d8f blueswir1
DEF_HELPER(void, helper_clear_float_exceptions, (void))
61 c9e03d8f blueswir1
DEF_HELPER(void, helper_fabss, (void))
62 c9e03d8f blueswir1
DEF_HELPER(void, helper_fsqrts, (void))
63 c9e03d8f blueswir1
DEF_HELPER(void, helper_fsqrtd, (void))
64 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmps, (void))
65 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpd, (void))
66 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpes, (void))
67 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmped, (void))
68 c9e03d8f blueswir1
DEF_HELPER(void, helper_fsqrtq, (void))
69 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpq, (void))
70 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpeq, (void))
71 7e8c2b6c blueswir1
#ifdef TARGET_SPARC64
72 3a3b925d blueswir1
DEF_HELPER(void, helper_ldxfsr, (uint64_t new_fsr))
73 c9e03d8f blueswir1
DEF_HELPER(void, helper_fabsd, (void))
74 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmps_fcc1, (void))
75 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpd_fcc1, (void))
76 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmps_fcc2, (void))
77 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpd_fcc2, (void))
78 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmps_fcc3, (void))
79 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpd_fcc3, (void))
80 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpes_fcc1, (void))
81 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmped_fcc1, (void))
82 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpes_fcc2, (void))
83 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmped_fcc2, (void))
84 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpes_fcc3, (void))
85 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmped_fcc3, (void))
86 c9e03d8f blueswir1
DEF_HELPER(void, helper_fabsq, (void))
87 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpq_fcc1, (void))
88 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpq_fcc2, (void))
89 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpq_fcc3, (void))
90 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpeq_fcc1, (void))
91 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpeq_fcc2, (void))
92 c9e03d8f blueswir1
DEF_HELPER(void, helper_fcmpeq_fcc3, (void))
93 7e8c2b6c blueswir1
#endif
94 c9e03d8f blueswir1
DEF_HELPER(void, raise_exception, (int tt))
95 c9e03d8f blueswir1
#define F_HELPER_0_0(name) DEF_HELPER(void, helper_f ## name, (void))
96 44e7757c blueswir1
#define F_HELPER_SDQ_0_0(name)                  \
97 44e7757c blueswir1
    F_HELPER_0_0(name ## s);                    \
98 44e7757c blueswir1
    F_HELPER_0_0(name ## d);                    \
99 44e7757c blueswir1
    F_HELPER_0_0(name ## q)
100 44e7757c blueswir1
101 44e7757c blueswir1
F_HELPER_SDQ_0_0(add);
102 44e7757c blueswir1
F_HELPER_SDQ_0_0(sub);
103 44e7757c blueswir1
F_HELPER_SDQ_0_0(mul);
104 44e7757c blueswir1
F_HELPER_SDQ_0_0(div);
105 44e7757c blueswir1
106 44e7757c blueswir1
F_HELPER_0_0(smuld);
107 44e7757c blueswir1
F_HELPER_0_0(dmulq);
108 44e7757c blueswir1
109 c9e03d8f blueswir1
DEF_HELPER(void, helper_fnegs, (void))
110 44e7757c blueswir1
F_HELPER_SDQ_0_0(ito);
111 44e7757c blueswir1
#ifdef TARGET_SPARC64
112 c9e03d8f blueswir1
DEF_HELPER(void, helper_fnegd, (void))
113 c9e03d8f blueswir1
DEF_HELPER(void, helper_fnegq, (void))
114 44e7757c blueswir1
F_HELPER_SDQ_0_0(xto);
115 44e7757c blueswir1
#endif
116 44e7757c blueswir1
F_HELPER_0_0(dtos);
117 44e7757c blueswir1
F_HELPER_0_0(stod);
118 44e7757c blueswir1
F_HELPER_0_0(qtos);
119 44e7757c blueswir1
F_HELPER_0_0(stoq);
120 44e7757c blueswir1
F_HELPER_0_0(qtod);
121 44e7757c blueswir1
F_HELPER_0_0(dtoq);
122 44e7757c blueswir1
F_HELPER_0_0(stoi);
123 44e7757c blueswir1
F_HELPER_0_0(dtoi);
124 44e7757c blueswir1
F_HELPER_0_0(qtoi);
125 44e7757c blueswir1
#ifdef TARGET_SPARC64
126 44e7757c blueswir1
F_HELPER_0_0(stox);
127 44e7757c blueswir1
F_HELPER_0_0(dtox);
128 44e7757c blueswir1
F_HELPER_0_0(qtox);
129 44e7757c blueswir1
F_HELPER_0_0(aligndata);
130 c9e03d8f blueswir1
DEF_HELPER(void, helper_movl_FT0_0, (void))
131 c9e03d8f blueswir1
DEF_HELPER(void, helper_movl_DT0_0, (void))
132 c9e03d8f blueswir1
DEF_HELPER(void, helper_movl_FT0_1, (void))
133 c9e03d8f blueswir1
DEF_HELPER(void, helper_movl_DT0_1, (void))
134 c9e03d8f blueswir1
135 44e7757c blueswir1
F_HELPER_0_0(not);
136 44e7757c blueswir1
F_HELPER_0_0(nots);
137 44e7757c blueswir1
F_HELPER_0_0(nor);
138 44e7757c blueswir1
F_HELPER_0_0(nors);
139 44e7757c blueswir1
F_HELPER_0_0(or);
140 44e7757c blueswir1
F_HELPER_0_0(ors);
141 44e7757c blueswir1
F_HELPER_0_0(xor);
142 44e7757c blueswir1
F_HELPER_0_0(xors);
143 44e7757c blueswir1
F_HELPER_0_0(and);
144 44e7757c blueswir1
F_HELPER_0_0(ands);
145 44e7757c blueswir1
F_HELPER_0_0(ornot);
146 44e7757c blueswir1
F_HELPER_0_0(ornots);
147 44e7757c blueswir1
F_HELPER_0_0(andnot);
148 44e7757c blueswir1
F_HELPER_0_0(andnots);
149 44e7757c blueswir1
F_HELPER_0_0(nand);
150 44e7757c blueswir1
F_HELPER_0_0(nands);
151 44e7757c blueswir1
F_HELPER_0_0(xnor);
152 44e7757c blueswir1
F_HELPER_0_0(xnors);
153 44e7757c blueswir1
F_HELPER_0_0(pmerge);
154 44e7757c blueswir1
F_HELPER_0_0(mul8x16);
155 44e7757c blueswir1
F_HELPER_0_0(mul8x16al);
156 44e7757c blueswir1
F_HELPER_0_0(mul8x16au);
157 44e7757c blueswir1
F_HELPER_0_0(mul8sux16);
158 44e7757c blueswir1
F_HELPER_0_0(mul8ulx16);
159 44e7757c blueswir1
F_HELPER_0_0(muld8sux16);
160 44e7757c blueswir1
F_HELPER_0_0(muld8ulx16);
161 44e7757c blueswir1
F_HELPER_0_0(expand);
162 44e7757c blueswir1
#define VIS_HELPER(name)                                 \
163 44e7757c blueswir1
    F_HELPER_0_0(name##16);                              \
164 44e7757c blueswir1
    F_HELPER_0_0(name##16s);                             \
165 44e7757c blueswir1
    F_HELPER_0_0(name##32);                              \
166 44e7757c blueswir1
    F_HELPER_0_0(name##32s)
167 44e7757c blueswir1
168 44e7757c blueswir1
VIS_HELPER(padd);
169 44e7757c blueswir1
VIS_HELPER(psub);
170 44e7757c blueswir1
#define VIS_CMPHELPER(name)                              \
171 44e7757c blueswir1
    F_HELPER_0_0(name##16);                              \
172 44e7757c blueswir1
    F_HELPER_0_0(name##32)
173 44e7757c blueswir1
VIS_CMPHELPER(cmpgt);
174 44e7757c blueswir1
VIS_CMPHELPER(cmpeq);
175 44e7757c blueswir1
VIS_CMPHELPER(cmple);
176 44e7757c blueswir1
VIS_CMPHELPER(cmpne);
177 44e7757c blueswir1
#endif
178 44e7757c blueswir1
#undef F_HELPER_0_0
179 44e7757c blueswir1
#undef F_HELPER_SDQ_0_0
180 44e7757c blueswir1
#undef VIS_HELPER
181 44e7757c blueswir1
#undef VIS_CMPHELPER