virtio-serial: Apps should consume all data that guest sends out / Fix virtio api...
[qemu.git] / target-sparc / helper.h
blob6f103e76977243af85cfb6efe97a0d54aed7b6a8
1 #include "def-helper.h"
3 #ifndef TARGET_SPARC64
4 DEF_HELPER_0(rett, void)
5 DEF_HELPER_1(wrpsr, void, tl)
6 DEF_HELPER_0(rdpsr, tl)
7 #else
8 DEF_HELPER_1(wrpil, void, tl)
9 DEF_HELPER_1(wrpstate, void, tl)
10 DEF_HELPER_0(done, void)
11 DEF_HELPER_0(retry, void)
12 DEF_HELPER_0(flushw, void)
13 DEF_HELPER_0(saved, void)
14 DEF_HELPER_0(restored, void)
15 DEF_HELPER_0(rdccr, tl)
16 DEF_HELPER_1(wrccr, void, tl)
17 DEF_HELPER_0(rdcwp, tl)
18 DEF_HELPER_1(wrcwp, void, tl)
19 DEF_HELPER_2(array8, tl, tl, tl)
20 DEF_HELPER_2(alignaddr, tl, tl, tl)
21 DEF_HELPER_1(popc, tl, tl)
22 DEF_HELPER_3(ldda_asi, void, tl, int, int)
23 DEF_HELPER_4(ldf_asi, void, tl, int, int, int)
24 DEF_HELPER_4(stf_asi, void, tl, int, int, int)
25 DEF_HELPER_4(cas_asi, tl, tl, tl, tl, i32)
26 DEF_HELPER_4(casx_asi, tl, tl, tl, tl, i32)
27 DEF_HELPER_1(set_softint, void, i64)
28 DEF_HELPER_1(clear_softint, void, i64)
29 DEF_HELPER_1(write_softint, void, i64)
30 DEF_HELPER_2(tick_set_count, void, ptr, i64)
31 DEF_HELPER_1(tick_get_count, i64, ptr)
32 DEF_HELPER_2(tick_set_limit, void, ptr, i64)
33 #endif
34 DEF_HELPER_2(check_align, void, tl, i32)
35 DEF_HELPER_0(debug, void)
36 DEF_HELPER_0(save, void)
37 DEF_HELPER_0(restore, void)
38 DEF_HELPER_1(flush, void, tl)
39 DEF_HELPER_2(udiv, tl, tl, tl)
40 DEF_HELPER_2(sdiv, tl, tl, tl)
41 DEF_HELPER_2(stdf, void, tl, int)
42 DEF_HELPER_2(lddf, void, tl, int)
43 DEF_HELPER_2(ldqf, void, tl, int)
44 DEF_HELPER_2(stqf, void, tl, int)
45 #if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
46 DEF_HELPER_4(ld_asi, i64, tl, int, int, int)
47 DEF_HELPER_4(st_asi, void, tl, i64, int, int)
48 #endif
49 DEF_HELPER_1(ldfsr, void, i32)
50 DEF_HELPER_0(check_ieee_exceptions, void)
51 DEF_HELPER_0(clear_float_exceptions, void)
52 DEF_HELPER_1(fabss, f32, f32)
53 DEF_HELPER_1(fsqrts, f32, f32)
54 DEF_HELPER_0(fsqrtd, void)
55 DEF_HELPER_2(fcmps, void, f32, f32)
56 DEF_HELPER_0(fcmpd, void)
57 DEF_HELPER_2(fcmpes, void, f32, f32)
58 DEF_HELPER_0(fcmped, void)
59 DEF_HELPER_0(fsqrtq, void)
60 DEF_HELPER_0(fcmpq, void)
61 DEF_HELPER_0(fcmpeq, void)
62 #ifdef TARGET_SPARC64
63 DEF_HELPER_1(ldxfsr, void, i64)
64 DEF_HELPER_0(fabsd, void)
65 DEF_HELPER_2(fcmps_fcc1, void, f32, f32)
66 DEF_HELPER_2(fcmps_fcc2, void, f32, f32)
67 DEF_HELPER_2(fcmps_fcc3, void, f32, f32)
68 DEF_HELPER_0(fcmpd_fcc1, void)
69 DEF_HELPER_0(fcmpd_fcc2, void)
70 DEF_HELPER_0(fcmpd_fcc3, void)
71 DEF_HELPER_2(fcmpes_fcc1, void, f32, f32)
72 DEF_HELPER_2(fcmpes_fcc2, void, f32, f32)
73 DEF_HELPER_2(fcmpes_fcc3, void, f32, f32)
74 DEF_HELPER_0(fcmped_fcc1, void)
75 DEF_HELPER_0(fcmped_fcc2, void)
76 DEF_HELPER_0(fcmped_fcc3, void)
77 DEF_HELPER_0(fabsq, void)
78 DEF_HELPER_0(fcmpq_fcc1, void)
79 DEF_HELPER_0(fcmpq_fcc2, void)
80 DEF_HELPER_0(fcmpq_fcc3, void)
81 DEF_HELPER_0(fcmpeq_fcc1, void)
82 DEF_HELPER_0(fcmpeq_fcc2, void)
83 DEF_HELPER_0(fcmpeq_fcc3, void)
84 #endif
85 DEF_HELPER_1(raise_exception, void, int)
86 #define F_HELPER_0_0(name) DEF_HELPER_0(f ## name, void)
87 #define F_HELPER_DQ_0_0(name) \
88 F_HELPER_0_0(name ## d); \
89 F_HELPER_0_0(name ## q)
91 F_HELPER_DQ_0_0(add);
92 F_HELPER_DQ_0_0(sub);
93 F_HELPER_DQ_0_0(mul);
94 F_HELPER_DQ_0_0(div);
96 DEF_HELPER_2(fadds, f32, f32, f32)
97 DEF_HELPER_2(fsubs, f32, f32, f32)
98 DEF_HELPER_2(fmuls, f32, f32, f32)
99 DEF_HELPER_2(fdivs, f32, f32, f32)
101 DEF_HELPER_2(fsmuld, void, f32, f32)
102 F_HELPER_0_0(dmulq);
104 DEF_HELPER_1(fnegs, f32, f32)
105 DEF_HELPER_1(fitod, void, s32)
106 DEF_HELPER_1(fitoq, void, s32)
108 DEF_HELPER_1(fitos, f32, s32)
110 #ifdef TARGET_SPARC64
111 DEF_HELPER_0(fnegd, void)
112 DEF_HELPER_0(fnegq, void)
113 DEF_HELPER_0(fxtos, i32)
114 F_HELPER_DQ_0_0(xto);
115 #endif
116 DEF_HELPER_0(fdtos, f32)
117 DEF_HELPER_1(fstod, void, f32)
118 DEF_HELPER_0(fqtos, f32)
119 DEF_HELPER_1(fstoq, void, f32)
120 F_HELPER_0_0(qtod);
121 F_HELPER_0_0(dtoq);
122 DEF_HELPER_1(fstoi, s32, f32)
123 DEF_HELPER_0(fdtoi, s32)
124 DEF_HELPER_0(fqtoi, s32)
125 #ifdef TARGET_SPARC64
126 DEF_HELPER_1(fstox, void, i32)
127 F_HELPER_0_0(dtox);
128 F_HELPER_0_0(qtox);
129 F_HELPER_0_0(aligndata);
131 F_HELPER_0_0(pmerge);
132 F_HELPER_0_0(mul8x16);
133 F_HELPER_0_0(mul8x16al);
134 F_HELPER_0_0(mul8x16au);
135 F_HELPER_0_0(mul8sux16);
136 F_HELPER_0_0(mul8ulx16);
137 F_HELPER_0_0(muld8sux16);
138 F_HELPER_0_0(muld8ulx16);
139 F_HELPER_0_0(expand);
140 #define VIS_HELPER(name) \
141 F_HELPER_0_0(name##16); \
142 DEF_HELPER_2(f ## name ## 16s, i32, i32, i32) \
143 F_HELPER_0_0(name##32); \
144 DEF_HELPER_2(f ## name ## 32s, i32, i32, i32)
146 VIS_HELPER(padd);
147 VIS_HELPER(psub);
148 #define VIS_CMPHELPER(name) \
149 F_HELPER_0_0(name##16); \
150 F_HELPER_0_0(name##32)
151 VIS_CMPHELPER(cmpgt);
152 VIS_CMPHELPER(cmpeq);
153 VIS_CMPHELPER(cmple);
154 VIS_CMPHELPER(cmpne);
155 #endif
156 #undef F_HELPER_0_0
157 #undef F_HELPER_DQ_0_0
158 #undef VIS_HELPER
159 #undef VIS_CMPHELPER
160 DEF_HELPER_0(compute_psr, void);
161 DEF_HELPER_0(compute_C_icc, i32);
163 #include "def-helper.h"