root / target-i386 / helper.h @ 94909d9f
History | View | Annotate | Download (6.2 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 | a7812ae4 | pbrook | DEF_HELPER_2(raise_interrupt, void, int, int) |
66 | a7812ae4 | pbrook | DEF_HELPER_1(raise_exception, void, int) |
67 | a7812ae4 | pbrook | DEF_HELPER_0(cli, void)
|
68 | a7812ae4 | pbrook | DEF_HELPER_0(sti, void)
|
69 | a7812ae4 | pbrook | DEF_HELPER_0(set_inhibit_irq, void)
|
70 | a7812ae4 | pbrook | DEF_HELPER_0(reset_inhibit_irq, void)
|
71 | a7812ae4 | pbrook | DEF_HELPER_2(boundw, void, tl, int) |
72 | a7812ae4 | pbrook | DEF_HELPER_2(boundl, void, tl, int) |
73 | a7812ae4 | pbrook | DEF_HELPER_0(rsm, void)
|
74 | a7812ae4 | pbrook | DEF_HELPER_1(into, void, int) |
75 | a7812ae4 | pbrook | DEF_HELPER_1(cmpxchg8b, void, tl)
|
76 | 1b9d9ebb | bellard | #ifdef TARGET_X86_64
|
77 | a7812ae4 | pbrook | DEF_HELPER_1(cmpxchg16b, void, tl)
|
78 | 1b9d9ebb | bellard | #endif
|
79 | a7812ae4 | pbrook | DEF_HELPER_0(single_step, void)
|
80 | a7812ae4 | pbrook | DEF_HELPER_0(cpuid, void)
|
81 | a7812ae4 | pbrook | DEF_HELPER_0(rdtsc, void)
|
82 | a7812ae4 | pbrook | DEF_HELPER_0(rdpmc, void)
|
83 | a7812ae4 | pbrook | DEF_HELPER_0(rdmsr, void)
|
84 | a7812ae4 | pbrook | DEF_HELPER_0(wrmsr, void)
|
85 | b5b38f61 | bellard | |
86 | a7812ae4 | pbrook | DEF_HELPER_1(check_iob, void, i32)
|
87 | a7812ae4 | pbrook | DEF_HELPER_1(check_iow, void, i32)
|
88 | a7812ae4 | pbrook | DEF_HELPER_1(check_iol, void, i32)
|
89 | a7812ae4 | pbrook | DEF_HELPER_2(outb, void, i32, i32)
|
90 | a7812ae4 | pbrook | DEF_HELPER_1(inb, tl, i32) |
91 | a7812ae4 | pbrook | DEF_HELPER_2(outw, void, i32, i32)
|
92 | a7812ae4 | pbrook | DEF_HELPER_1(inw, tl, i32) |
93 | a7812ae4 | pbrook | DEF_HELPER_2(outl, void, i32, i32)
|
94 | a7812ae4 | pbrook | DEF_HELPER_1(inl, tl, i32) |
95 | b8b6a50b | bellard | |
96 | a7812ae4 | pbrook | DEF_HELPER_2(svm_check_intercept_param, void, i32, i64)
|
97 | a7812ae4 | pbrook | DEF_HELPER_2(vmexit, void, i32, i64)
|
98 | a7812ae4 | pbrook | DEF_HELPER_3(svm_check_io, void, i32, i32, i32)
|
99 | a7812ae4 | pbrook | DEF_HELPER_2(vmrun, void, int, int) |
100 | a7812ae4 | pbrook | DEF_HELPER_0(vmmcall, void)
|
101 | a7812ae4 | pbrook | DEF_HELPER_1(vmload, void, int) |
102 | a7812ae4 | pbrook | DEF_HELPER_1(vmsave, void, int) |
103 | a7812ae4 | pbrook | DEF_HELPER_0(stgi, void)
|
104 | a7812ae4 | pbrook | DEF_HELPER_0(clgi, void)
|
105 | a7812ae4 | pbrook | DEF_HELPER_0(skinit, void)
|
106 | a7812ae4 | pbrook | DEF_HELPER_1(invlpga, void, int) |
107 | 19e6c4b8 | bellard | |
108 | 19e6c4b8 | bellard | /* x86 FPU */
|
109 | 19e6c4b8 | bellard | |
110 | a7812ae4 | pbrook | DEF_HELPER_1(flds_FT0, void, i32)
|
111 | a7812ae4 | pbrook | DEF_HELPER_1(fldl_FT0, void, i64)
|
112 | a7812ae4 | pbrook | DEF_HELPER_1(fildl_FT0, void, s32)
|
113 | a7812ae4 | pbrook | DEF_HELPER_1(flds_ST0, void, i32)
|
114 | a7812ae4 | pbrook | DEF_HELPER_1(fldl_ST0, void, i64)
|
115 | a7812ae4 | pbrook | DEF_HELPER_1(fildl_ST0, void, s32)
|
116 | a7812ae4 | pbrook | DEF_HELPER_1(fildll_ST0, void, s64)
|
117 | a7812ae4 | pbrook | DEF_HELPER_0(fsts_ST0, i32) |
118 | a7812ae4 | pbrook | DEF_HELPER_0(fstl_ST0, i64) |
119 | a7812ae4 | pbrook | DEF_HELPER_0(fist_ST0, s32) |
120 | a7812ae4 | pbrook | DEF_HELPER_0(fistl_ST0, s32) |
121 | a7812ae4 | pbrook | DEF_HELPER_0(fistll_ST0, s64) |
122 | a7812ae4 | pbrook | DEF_HELPER_0(fistt_ST0, s32) |
123 | a7812ae4 | pbrook | DEF_HELPER_0(fisttl_ST0, s32) |
124 | a7812ae4 | pbrook | DEF_HELPER_0(fisttll_ST0, s64) |
125 | a7812ae4 | pbrook | DEF_HELPER_1(fldt_ST0, void, tl)
|
126 | a7812ae4 | pbrook | DEF_HELPER_1(fstt_ST0, void, tl)
|
127 | a7812ae4 | pbrook | DEF_HELPER_0(fpush, void)
|
128 | a7812ae4 | pbrook | DEF_HELPER_0(fpop, void)
|
129 | a7812ae4 | pbrook | DEF_HELPER_0(fdecstp, void)
|
130 | a7812ae4 | pbrook | DEF_HELPER_0(fincstp, void)
|
131 | a7812ae4 | pbrook | DEF_HELPER_1(ffree_STN, void, int) |
132 | a7812ae4 | pbrook | DEF_HELPER_0(fmov_ST0_FT0, void)
|
133 | a7812ae4 | pbrook | DEF_HELPER_1(fmov_FT0_STN, void, int) |
134 | a7812ae4 | pbrook | DEF_HELPER_1(fmov_ST0_STN, void, int) |
135 | a7812ae4 | pbrook | DEF_HELPER_1(fmov_STN_ST0, void, int) |
136 | a7812ae4 | pbrook | DEF_HELPER_1(fxchg_ST0_STN, void, int) |
137 | a7812ae4 | pbrook | DEF_HELPER_0(fcom_ST0_FT0, void)
|
138 | a7812ae4 | pbrook | DEF_HELPER_0(fucom_ST0_FT0, void)
|
139 | a7812ae4 | pbrook | DEF_HELPER_0(fcomi_ST0_FT0, void)
|
140 | a7812ae4 | pbrook | DEF_HELPER_0(fucomi_ST0_FT0, void)
|
141 | a7812ae4 | pbrook | DEF_HELPER_0(fadd_ST0_FT0, void)
|
142 | a7812ae4 | pbrook | DEF_HELPER_0(fmul_ST0_FT0, void)
|
143 | a7812ae4 | pbrook | DEF_HELPER_0(fsub_ST0_FT0, void)
|
144 | a7812ae4 | pbrook | DEF_HELPER_0(fsubr_ST0_FT0, void)
|
145 | a7812ae4 | pbrook | DEF_HELPER_0(fdiv_ST0_FT0, void)
|
146 | a7812ae4 | pbrook | DEF_HELPER_0(fdivr_ST0_FT0, void)
|
147 | a7812ae4 | pbrook | DEF_HELPER_1(fadd_STN_ST0, void, int) |
148 | a7812ae4 | pbrook | DEF_HELPER_1(fmul_STN_ST0, void, int) |
149 | a7812ae4 | pbrook | DEF_HELPER_1(fsub_STN_ST0, void, int) |
150 | a7812ae4 | pbrook | DEF_HELPER_1(fsubr_STN_ST0, void, int) |
151 | a7812ae4 | pbrook | DEF_HELPER_1(fdiv_STN_ST0, void, int) |
152 | a7812ae4 | pbrook | DEF_HELPER_1(fdivr_STN_ST0, void, int) |
153 | a7812ae4 | pbrook | DEF_HELPER_0(fchs_ST0, void)
|
154 | a7812ae4 | pbrook | DEF_HELPER_0(fabs_ST0, void)
|
155 | a7812ae4 | pbrook | DEF_HELPER_0(fxam_ST0, void)
|
156 | a7812ae4 | pbrook | DEF_HELPER_0(fld1_ST0, void)
|
157 | a7812ae4 | pbrook | DEF_HELPER_0(fldl2t_ST0, void)
|
158 | a7812ae4 | pbrook | DEF_HELPER_0(fldl2e_ST0, void)
|
159 | a7812ae4 | pbrook | DEF_HELPER_0(fldpi_ST0, void)
|
160 | a7812ae4 | pbrook | DEF_HELPER_0(fldlg2_ST0, void)
|
161 | a7812ae4 | pbrook | DEF_HELPER_0(fldln2_ST0, void)
|
162 | a7812ae4 | pbrook | DEF_HELPER_0(fldz_ST0, void)
|
163 | a7812ae4 | pbrook | DEF_HELPER_0(fldz_FT0, void)
|
164 | a7812ae4 | pbrook | DEF_HELPER_0(fnstsw, i32) |
165 | a7812ae4 | pbrook | DEF_HELPER_0(fnstcw, i32) |
166 | a7812ae4 | pbrook | DEF_HELPER_1(fldcw, void, i32)
|
167 | a7812ae4 | pbrook | DEF_HELPER_0(fclex, void)
|
168 | a7812ae4 | pbrook | DEF_HELPER_0(fwait, void)
|
169 | a7812ae4 | pbrook | DEF_HELPER_0(fninit, void)
|
170 | a7812ae4 | pbrook | DEF_HELPER_1(fbld_ST0, void, tl)
|
171 | a7812ae4 | pbrook | DEF_HELPER_1(fbst_ST0, void, tl)
|
172 | a7812ae4 | pbrook | DEF_HELPER_0(f2xm1, void)
|
173 | a7812ae4 | pbrook | DEF_HELPER_0(fyl2x, void)
|
174 | a7812ae4 | pbrook | DEF_HELPER_0(fptan, void)
|
175 | a7812ae4 | pbrook | DEF_HELPER_0(fpatan, void)
|
176 | a7812ae4 | pbrook | DEF_HELPER_0(fxtract, void)
|
177 | a7812ae4 | pbrook | DEF_HELPER_0(fprem1, void)
|
178 | a7812ae4 | pbrook | DEF_HELPER_0(fprem, void)
|
179 | a7812ae4 | pbrook | DEF_HELPER_0(fyl2xp1, void)
|
180 | a7812ae4 | pbrook | DEF_HELPER_0(fsqrt, void)
|
181 | a7812ae4 | pbrook | DEF_HELPER_0(fsincos, void)
|
182 | a7812ae4 | pbrook | DEF_HELPER_0(frndint, void)
|
183 | a7812ae4 | pbrook | DEF_HELPER_0(fscale, void)
|
184 | a7812ae4 | pbrook | DEF_HELPER_0(fsin, void)
|
185 | a7812ae4 | pbrook | DEF_HELPER_0(fcos, void)
|
186 | a7812ae4 | pbrook | DEF_HELPER_2(fstenv, void, tl, int) |
187 | a7812ae4 | pbrook | DEF_HELPER_2(fldenv, void, tl, int) |
188 | a7812ae4 | pbrook | DEF_HELPER_2(fsave, void, tl, int) |
189 | a7812ae4 | pbrook | DEF_HELPER_2(frstor, void, tl, int) |
190 | a7812ae4 | pbrook | DEF_HELPER_2(fxsave, void, tl, int) |
191 | a7812ae4 | pbrook | DEF_HELPER_2(fxrstor, void, tl, int) |
192 | a7812ae4 | pbrook | DEF_HELPER_1(bsf, tl, tl) |
193 | a7812ae4 | pbrook | DEF_HELPER_1(bsr, tl, tl) |
194 | 19e6c4b8 | bellard | |
195 | 19e6c4b8 | bellard | /* MMX/SSE */
|
196 | 19e6c4b8 | bellard | |
197 | a7812ae4 | pbrook | DEF_HELPER_0(enter_mmx, void)
|
198 | a7812ae4 | pbrook | DEF_HELPER_0(emms, void)
|
199 | a7812ae4 | pbrook | DEF_HELPER_2(movq, void, ptr, ptr)
|
200 | 5af45186 | bellard | |
201 | 5af45186 | bellard | #define SHIFT 0 |
202 | 5af45186 | bellard | #include "ops_sse_header.h" |
203 | 5af45186 | bellard | #define SHIFT 1 |
204 | 5af45186 | bellard | #include "ops_sse_header.h" |
205 | 5af45186 | bellard | |
206 | a7812ae4 | pbrook | DEF_HELPER_2(rclb, tl, tl, tl) |
207 | a7812ae4 | pbrook | DEF_HELPER_2(rclw, tl, tl, tl) |
208 | a7812ae4 | pbrook | DEF_HELPER_2(rcll, tl, tl, tl) |
209 | a7812ae4 | pbrook | DEF_HELPER_2(rcrb, tl, tl, tl) |
210 | a7812ae4 | pbrook | DEF_HELPER_2(rcrw, tl, tl, tl) |
211 | a7812ae4 | pbrook | DEF_HELPER_2(rcrl, tl, tl, tl) |
212 | b6abf97d | bellard | #ifdef TARGET_X86_64
|
213 | a7812ae4 | pbrook | DEF_HELPER_2(rclq, tl, tl, tl) |
214 | a7812ae4 | pbrook | DEF_HELPER_2(rcrq, tl, tl, tl) |
215 | b6abf97d | bellard | #endif
|
216 | b6abf97d | bellard | |
217 | a7812ae4 | pbrook | #include "def-helper.h" |