Statistics
| Branch: | Revision:

root / target-i386 / helper.h @ 8c0d577e

History | View | Annotate | Download (6.3 kB)

1 a7812ae4 pbrook
#include "def-helper.h"
2 a7812ae4 pbrook
3 a7812ae4 pbrook
DEF_HELPER_FLAGS_1(cc_compute_all, TCG_CALL_PURE, i32, int)
4 a7812ae4 pbrook
DEF_HELPER_FLAGS_1(cc_compute_c, TCG_CALL_PURE, i32, int)
5 57fec1fe bellard
6 a7812ae4 pbrook
DEF_HELPER_0(lock, void)
7 a7812ae4 pbrook
DEF_HELPER_0(unlock, void)
8 a7812ae4 pbrook
DEF_HELPER_2(write_eflags, void, tl, i32)
9 a7812ae4 pbrook
DEF_HELPER_0(read_eflags, tl)
10 a7812ae4 pbrook
DEF_HELPER_1(divb_AL, void, tl)
11 a7812ae4 pbrook
DEF_HELPER_1(idivb_AL, void, tl)
12 a7812ae4 pbrook
DEF_HELPER_1(divw_AX, void, tl)
13 a7812ae4 pbrook
DEF_HELPER_1(idivw_AX, void, tl)
14 a7812ae4 pbrook
DEF_HELPER_1(divl_EAX, void, tl)
15 a7812ae4 pbrook
DEF_HELPER_1(idivl_EAX, void, tl)
16 b5b38f61 bellard
#ifdef TARGET_X86_64
17 a7812ae4 pbrook
DEF_HELPER_1(mulq_EAX_T0, void, tl)
18 a7812ae4 pbrook
DEF_HELPER_1(imulq_EAX_T0, void, tl)
19 a7812ae4 pbrook
DEF_HELPER_2(imulq_T0_T1, tl, tl, tl)
20 a7812ae4 pbrook
DEF_HELPER_1(divq_EAX, void, tl)
21 a7812ae4 pbrook
DEF_HELPER_1(idivq_EAX, void, tl)
22 b5b38f61 bellard
#endif
23 b5b38f61 bellard
24 a7812ae4 pbrook
DEF_HELPER_1(aam, void, int)
25 a7812ae4 pbrook
DEF_HELPER_1(aad, void, int)
26 a7812ae4 pbrook
DEF_HELPER_0(aaa, void)
27 a7812ae4 pbrook
DEF_HELPER_0(aas, void)
28 a7812ae4 pbrook
DEF_HELPER_0(daa, void)
29 a7812ae4 pbrook
DEF_HELPER_0(das, void)
30 b5b38f61 bellard
31 a7812ae4 pbrook
DEF_HELPER_1(lsl, tl, tl)
32 a7812ae4 pbrook
DEF_HELPER_1(lar, tl, tl)
33 a7812ae4 pbrook
DEF_HELPER_1(verr, void, tl)
34 a7812ae4 pbrook
DEF_HELPER_1(verw, void, tl)
35 a7812ae4 pbrook
DEF_HELPER_1(lldt, void, int)
36 a7812ae4 pbrook
DEF_HELPER_1(ltr, void, int)
37 a7812ae4 pbrook
DEF_HELPER_2(load_seg, void, int, int)
38 a7812ae4 pbrook
DEF_HELPER_3(ljmp_protected, void, int, tl, int)
39 a7812ae4 pbrook
DEF_HELPER_4(lcall_real, void, int, tl, int, int)
40 a7812ae4 pbrook
DEF_HELPER_4(lcall_protected, void, int, tl, int, int)
41 a7812ae4 pbrook
DEF_HELPER_1(iret_real, void, int)
42 a7812ae4 pbrook
DEF_HELPER_2(iret_protected, void, int, int)
43 a7812ae4 pbrook
DEF_HELPER_2(lret_protected, void, int, int)
44 a7812ae4 pbrook
DEF_HELPER_1(read_crN, tl, int)
45 a7812ae4 pbrook
DEF_HELPER_2(write_crN, void, int, tl)
46 a7812ae4 pbrook
DEF_HELPER_1(lmsw, void, tl)
47 a7812ae4 pbrook
DEF_HELPER_0(clts, void)
48 a7812ae4 pbrook
DEF_HELPER_2(movl_drN_T0, void, int, tl)
49 a7812ae4 pbrook
DEF_HELPER_1(invlpg, void, tl)
50 b5b38f61 bellard
51 a7812ae4 pbrook
DEF_HELPER_3(enter_level, void, int, int, tl)
52 b5b38f61 bellard
#ifdef TARGET_X86_64
53 a7812ae4 pbrook
DEF_HELPER_3(enter64_level, void, int, int, tl)
54 b5b38f61 bellard
#endif
55 a7812ae4 pbrook
DEF_HELPER_0(sysenter, void)
56 a7812ae4 pbrook
DEF_HELPER_1(sysexit, void, int)
57 b5b38f61 bellard
#ifdef TARGET_X86_64
58 a7812ae4 pbrook
DEF_HELPER_1(syscall, void, int)
59 a7812ae4 pbrook
DEF_HELPER_1(sysret, void, int)
60 b5b38f61 bellard
#endif
61 a7812ae4 pbrook
DEF_HELPER_1(hlt, void, int)
62 a7812ae4 pbrook
DEF_HELPER_1(monitor, void, tl)
63 a7812ae4 pbrook
DEF_HELPER_1(mwait, void, int)
64 a7812ae4 pbrook
DEF_HELPER_0(debug, void)
65 a2397807 Jan Kiszka
DEF_HELPER_0(reset_rf, void)
66 a7812ae4 pbrook
DEF_HELPER_2(raise_interrupt, void, int, int)
67 a7812ae4 pbrook
DEF_HELPER_1(raise_exception, void, int)
68 a7812ae4 pbrook
DEF_HELPER_0(cli, void)
69 a7812ae4 pbrook
DEF_HELPER_0(sti, void)
70 a7812ae4 pbrook
DEF_HELPER_0(set_inhibit_irq, void)
71 a7812ae4 pbrook
DEF_HELPER_0(reset_inhibit_irq, void)
72 a7812ae4 pbrook
DEF_HELPER_2(boundw, void, tl, int)
73 a7812ae4 pbrook
DEF_HELPER_2(boundl, void, tl, int)
74 a7812ae4 pbrook
DEF_HELPER_0(rsm, void)
75 a7812ae4 pbrook
DEF_HELPER_1(into, void, int)
76 a7812ae4 pbrook
DEF_HELPER_1(cmpxchg8b, void, tl)
77 1b9d9ebb bellard
#ifdef TARGET_X86_64
78 a7812ae4 pbrook
DEF_HELPER_1(cmpxchg16b, void, tl)
79 1b9d9ebb bellard
#endif
80 a7812ae4 pbrook
DEF_HELPER_0(single_step, void)
81 a7812ae4 pbrook
DEF_HELPER_0(cpuid, void)
82 a7812ae4 pbrook
DEF_HELPER_0(rdtsc, void)
83 1b050077 Andre Przywara
DEF_HELPER_0(rdtscp, void)
84 a7812ae4 pbrook
DEF_HELPER_0(rdpmc, void)
85 a7812ae4 pbrook
DEF_HELPER_0(rdmsr, void)
86 a7812ae4 pbrook
DEF_HELPER_0(wrmsr, void)
87 b5b38f61 bellard
88 a7812ae4 pbrook
DEF_HELPER_1(check_iob, void, i32)
89 a7812ae4 pbrook
DEF_HELPER_1(check_iow, void, i32)
90 a7812ae4 pbrook
DEF_HELPER_1(check_iol, void, i32)
91 a7812ae4 pbrook
DEF_HELPER_2(outb, void, i32, i32)
92 a7812ae4 pbrook
DEF_HELPER_1(inb, tl, i32)
93 a7812ae4 pbrook
DEF_HELPER_2(outw, void, i32, i32)
94 a7812ae4 pbrook
DEF_HELPER_1(inw, tl, i32)
95 a7812ae4 pbrook
DEF_HELPER_2(outl, void, i32, i32)
96 a7812ae4 pbrook
DEF_HELPER_1(inl, tl, i32)
97 b8b6a50b bellard
98 a7812ae4 pbrook
DEF_HELPER_2(svm_check_intercept_param, void, i32, i64)
99 a7812ae4 pbrook
DEF_HELPER_2(vmexit, void, i32, i64)
100 a7812ae4 pbrook
DEF_HELPER_3(svm_check_io, void, i32, i32, i32)
101 a7812ae4 pbrook
DEF_HELPER_2(vmrun, void, int, int)
102 a7812ae4 pbrook
DEF_HELPER_0(vmmcall, void)
103 a7812ae4 pbrook
DEF_HELPER_1(vmload, void, int)
104 a7812ae4 pbrook
DEF_HELPER_1(vmsave, void, int)
105 a7812ae4 pbrook
DEF_HELPER_0(stgi, void)
106 a7812ae4 pbrook
DEF_HELPER_0(clgi, void)
107 a7812ae4 pbrook
DEF_HELPER_0(skinit, void)
108 a7812ae4 pbrook
DEF_HELPER_1(invlpga, void, int)
109 19e6c4b8 bellard
110 19e6c4b8 bellard
/* x86 FPU */
111 19e6c4b8 bellard
112 a7812ae4 pbrook
DEF_HELPER_1(flds_FT0, void, i32)
113 a7812ae4 pbrook
DEF_HELPER_1(fldl_FT0, void, i64)
114 a7812ae4 pbrook
DEF_HELPER_1(fildl_FT0, void, s32)
115 a7812ae4 pbrook
DEF_HELPER_1(flds_ST0, void, i32)
116 a7812ae4 pbrook
DEF_HELPER_1(fldl_ST0, void, i64)
117 a7812ae4 pbrook
DEF_HELPER_1(fildl_ST0, void, s32)
118 a7812ae4 pbrook
DEF_HELPER_1(fildll_ST0, void, s64)
119 a7812ae4 pbrook
DEF_HELPER_0(fsts_ST0, i32)
120 a7812ae4 pbrook
DEF_HELPER_0(fstl_ST0, i64)
121 a7812ae4 pbrook
DEF_HELPER_0(fist_ST0, s32)
122 a7812ae4 pbrook
DEF_HELPER_0(fistl_ST0, s32)
123 a7812ae4 pbrook
DEF_HELPER_0(fistll_ST0, s64)
124 a7812ae4 pbrook
DEF_HELPER_0(fistt_ST0, s32)
125 a7812ae4 pbrook
DEF_HELPER_0(fisttl_ST0, s32)
126 a7812ae4 pbrook
DEF_HELPER_0(fisttll_ST0, s64)
127 a7812ae4 pbrook
DEF_HELPER_1(fldt_ST0, void, tl)
128 a7812ae4 pbrook
DEF_HELPER_1(fstt_ST0, void, tl)
129 a7812ae4 pbrook
DEF_HELPER_0(fpush, void)
130 a7812ae4 pbrook
DEF_HELPER_0(fpop, void)
131 a7812ae4 pbrook
DEF_HELPER_0(fdecstp, void)
132 a7812ae4 pbrook
DEF_HELPER_0(fincstp, void)
133 a7812ae4 pbrook
DEF_HELPER_1(ffree_STN, void, int)
134 a7812ae4 pbrook
DEF_HELPER_0(fmov_ST0_FT0, void)
135 a7812ae4 pbrook
DEF_HELPER_1(fmov_FT0_STN, void, int)
136 a7812ae4 pbrook
DEF_HELPER_1(fmov_ST0_STN, void, int)
137 a7812ae4 pbrook
DEF_HELPER_1(fmov_STN_ST0, void, int)
138 a7812ae4 pbrook
DEF_HELPER_1(fxchg_ST0_STN, void, int)
139 a7812ae4 pbrook
DEF_HELPER_0(fcom_ST0_FT0, void)
140 a7812ae4 pbrook
DEF_HELPER_0(fucom_ST0_FT0, void)
141 a7812ae4 pbrook
DEF_HELPER_0(fcomi_ST0_FT0, void)
142 a7812ae4 pbrook
DEF_HELPER_0(fucomi_ST0_FT0, void)
143 a7812ae4 pbrook
DEF_HELPER_0(fadd_ST0_FT0, void)
144 a7812ae4 pbrook
DEF_HELPER_0(fmul_ST0_FT0, void)
145 a7812ae4 pbrook
DEF_HELPER_0(fsub_ST0_FT0, void)
146 a7812ae4 pbrook
DEF_HELPER_0(fsubr_ST0_FT0, void)
147 a7812ae4 pbrook
DEF_HELPER_0(fdiv_ST0_FT0, void)
148 a7812ae4 pbrook
DEF_HELPER_0(fdivr_ST0_FT0, void)
149 a7812ae4 pbrook
DEF_HELPER_1(fadd_STN_ST0, void, int)
150 a7812ae4 pbrook
DEF_HELPER_1(fmul_STN_ST0, void, int)
151 a7812ae4 pbrook
DEF_HELPER_1(fsub_STN_ST0, void, int)
152 a7812ae4 pbrook
DEF_HELPER_1(fsubr_STN_ST0, void, int)
153 a7812ae4 pbrook
DEF_HELPER_1(fdiv_STN_ST0, void, int)
154 a7812ae4 pbrook
DEF_HELPER_1(fdivr_STN_ST0, void, int)
155 a7812ae4 pbrook
DEF_HELPER_0(fchs_ST0, void)
156 a7812ae4 pbrook
DEF_HELPER_0(fabs_ST0, void)
157 a7812ae4 pbrook
DEF_HELPER_0(fxam_ST0, void)
158 a7812ae4 pbrook
DEF_HELPER_0(fld1_ST0, void)
159 a7812ae4 pbrook
DEF_HELPER_0(fldl2t_ST0, void)
160 a7812ae4 pbrook
DEF_HELPER_0(fldl2e_ST0, void)
161 a7812ae4 pbrook
DEF_HELPER_0(fldpi_ST0, void)
162 a7812ae4 pbrook
DEF_HELPER_0(fldlg2_ST0, void)
163 a7812ae4 pbrook
DEF_HELPER_0(fldln2_ST0, void)
164 a7812ae4 pbrook
DEF_HELPER_0(fldz_ST0, void)
165 a7812ae4 pbrook
DEF_HELPER_0(fldz_FT0, void)
166 a7812ae4 pbrook
DEF_HELPER_0(fnstsw, i32)
167 a7812ae4 pbrook
DEF_HELPER_0(fnstcw, i32)
168 a7812ae4 pbrook
DEF_HELPER_1(fldcw, void, i32)
169 a7812ae4 pbrook
DEF_HELPER_0(fclex, void)
170 a7812ae4 pbrook
DEF_HELPER_0(fwait, void)
171 a7812ae4 pbrook
DEF_HELPER_0(fninit, void)
172 a7812ae4 pbrook
DEF_HELPER_1(fbld_ST0, void, tl)
173 a7812ae4 pbrook
DEF_HELPER_1(fbst_ST0, void, tl)
174 a7812ae4 pbrook
DEF_HELPER_0(f2xm1, void)
175 a7812ae4 pbrook
DEF_HELPER_0(fyl2x, void)
176 a7812ae4 pbrook
DEF_HELPER_0(fptan, void)
177 a7812ae4 pbrook
DEF_HELPER_0(fpatan, void)
178 a7812ae4 pbrook
DEF_HELPER_0(fxtract, void)
179 a7812ae4 pbrook
DEF_HELPER_0(fprem1, void)
180 a7812ae4 pbrook
DEF_HELPER_0(fprem, void)
181 a7812ae4 pbrook
DEF_HELPER_0(fyl2xp1, void)
182 a7812ae4 pbrook
DEF_HELPER_0(fsqrt, void)
183 a7812ae4 pbrook
DEF_HELPER_0(fsincos, void)
184 a7812ae4 pbrook
DEF_HELPER_0(frndint, void)
185 a7812ae4 pbrook
DEF_HELPER_0(fscale, void)
186 a7812ae4 pbrook
DEF_HELPER_0(fsin, void)
187 a7812ae4 pbrook
DEF_HELPER_0(fcos, void)
188 a7812ae4 pbrook
DEF_HELPER_2(fstenv, void, tl, int)
189 a7812ae4 pbrook
DEF_HELPER_2(fldenv, void, tl, int)
190 a7812ae4 pbrook
DEF_HELPER_2(fsave, void, tl, int)
191 a7812ae4 pbrook
DEF_HELPER_2(frstor, void, tl, int)
192 a7812ae4 pbrook
DEF_HELPER_2(fxsave, void, tl, int)
193 a7812ae4 pbrook
DEF_HELPER_2(fxrstor, void, tl, int)
194 a7812ae4 pbrook
DEF_HELPER_1(bsf, tl, tl)
195 a7812ae4 pbrook
DEF_HELPER_1(bsr, tl, tl)
196 31501a71 Andre Przywara
DEF_HELPER_2(lzcnt, tl, tl, int)
197 19e6c4b8 bellard
198 19e6c4b8 bellard
/* MMX/SSE */
199 19e6c4b8 bellard
200 a7812ae4 pbrook
DEF_HELPER_0(enter_mmx, void)
201 a7812ae4 pbrook
DEF_HELPER_0(emms, void)
202 a7812ae4 pbrook
DEF_HELPER_2(movq, void, ptr, ptr)
203 5af45186 bellard
204 5af45186 bellard
#define SHIFT 0
205 5af45186 bellard
#include "ops_sse_header.h"
206 5af45186 bellard
#define SHIFT 1
207 5af45186 bellard
#include "ops_sse_header.h"
208 5af45186 bellard
209 a7812ae4 pbrook
DEF_HELPER_2(rclb, tl, tl, tl)
210 a7812ae4 pbrook
DEF_HELPER_2(rclw, tl, tl, tl)
211 a7812ae4 pbrook
DEF_HELPER_2(rcll, tl, tl, tl)
212 a7812ae4 pbrook
DEF_HELPER_2(rcrb, tl, tl, tl)
213 a7812ae4 pbrook
DEF_HELPER_2(rcrw, tl, tl, tl)
214 a7812ae4 pbrook
DEF_HELPER_2(rcrl, tl, tl, tl)
215 b6abf97d bellard
#ifdef TARGET_X86_64
216 a7812ae4 pbrook
DEF_HELPER_2(rclq, tl, tl, tl)
217 a7812ae4 pbrook
DEF_HELPER_2(rcrq, tl, tl, tl)
218 b6abf97d bellard
#endif
219 b6abf97d bellard
220 a7812ae4 pbrook
#include "def-helper.h"