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