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