Statistics
| Branch: | Revision:

root / target-i386 / helper.h @ 1b9d9ebb

History | View | Annotate | Download (7.2 kB)

1
#define TCG_HELPER_PROTO
2

    
3
void helper_lock(void);
4
void helper_unlock(void);
5
void helper_write_eflags(target_ulong t0, uint32_t update_mask);
6
target_ulong helper_read_eflags(void);
7
void helper_divb_AL(target_ulong t0);
8
void helper_idivb_AL(target_ulong t0);
9
void helper_divw_AX(target_ulong t0);
10
void helper_idivw_AX(target_ulong t0);
11
void helper_divl_EAX(target_ulong t0);
12
void helper_idivl_EAX(target_ulong t0);
13
#ifdef TARGET_X86_64
14
void helper_mulq_EAX_T0(target_ulong t0);
15
void helper_imulq_EAX_T0(target_ulong t0);
16
target_ulong helper_imulq_T0_T1(target_ulong t0, target_ulong t1);
17
void helper_divq_EAX(target_ulong t0);
18
void helper_idivq_EAX(target_ulong t0);
19
#endif
20

    
21
void helper_aam(int base);
22
void helper_aad(int base);
23
void helper_aaa(void);
24
void helper_aas(void);
25
void helper_daa(void);
26
void helper_das(void);
27

    
28
target_ulong helper_lsl(target_ulong selector1);
29
target_ulong helper_lar(target_ulong selector1);
30
void helper_verr(target_ulong selector1);
31
void helper_verw(target_ulong selector1);
32
void helper_lldt(int selector);
33
void helper_ltr(int selector);
34
void helper_load_seg(int seg_reg, int selector);
35
void helper_ljmp_protected(int new_cs, target_ulong new_eip,
36
                           int next_eip_addend);
37
void helper_lcall_real(int new_cs, target_ulong new_eip1,
38
                       int shift, int next_eip);
39
void helper_lcall_protected(int new_cs, target_ulong new_eip, 
40
                            int shift, int next_eip_addend);
41
void helper_iret_real(int shift);
42
void helper_iret_protected(int shift, int next_eip);
43
void helper_lret_protected(int shift, int addend);
44
void helper_movl_crN_T0(int reg, target_ulong t0);
45
void helper_lmsw(target_ulong t0);
46
void helper_clts(void);
47
#if !defined(CONFIG_USER_ONLY)
48
target_ulong helper_movtl_T0_cr8(void);
49
#endif
50
void helper_movl_drN_T0(int reg, target_ulong t0);
51
void helper_invlpg(target_ulong addr);
52

    
53
void helper_enter_level(int level, int data32, target_ulong t1);
54
#ifdef TARGET_X86_64
55
void helper_enter64_level(int level, int data64, target_ulong t1);
56
#endif
57
void helper_sysenter(void);
58
void helper_sysexit(void);
59
#ifdef TARGET_X86_64
60
void helper_syscall(int next_eip_addend);
61
void helper_sysret(int dflag);
62
#endif
63
void helper_hlt(void);
64
void helper_monitor(target_ulong ptr);
65
void helper_mwait(void);
66
void helper_debug(void);
67
void helper_raise_interrupt(int intno, int next_eip_addend);
68
void helper_raise_exception(int exception_index);
69
void helper_cli(void);
70
void helper_sti(void);
71
void helper_set_inhibit_irq(void);
72
void helper_reset_inhibit_irq(void);
73
void helper_boundw(target_ulong a0, int v);
74
void helper_boundl(target_ulong a0, int v);
75
void helper_rsm(void);
76
void helper_into(int next_eip_addend);
77
void helper_cmpxchg8b(target_ulong a0);
78
#ifdef TARGET_X86_64
79
void helper_cmpxchg16b(target_ulong a0);
80
#endif
81
void helper_single_step(void);
82
void helper_cpuid(void);
83
void helper_rdtsc(void);
84
void helper_rdpmc(void);
85
void helper_rdmsr(void);
86
void helper_wrmsr(void);
87

    
88
void helper_check_iob(uint32_t t0);
89
void helper_check_iow(uint32_t t0);
90
void helper_check_iol(uint32_t t0);
91
void helper_outb(uint32_t port, uint32_t data);
92
target_ulong helper_inb(uint32_t port);
93
void helper_outw(uint32_t port, uint32_t data);
94
target_ulong helper_inw(uint32_t port);
95
void helper_outl(uint32_t port, uint32_t data);
96
target_ulong helper_inl(uint32_t port);
97

    
98
void helper_svm_check_intercept_param(uint32_t type, uint64_t param);
99
void helper_vmexit(uint32_t exit_code, uint64_t exit_info_1);
100
void helper_svm_check_io(uint32_t port, uint32_t param, 
101
                         uint32_t next_eip_addend);
102
void helper_vmrun(void);
103
void helper_vmmcall(void);
104
void helper_vmload(void);
105
void helper_vmsave(void);
106
void helper_stgi(void);
107
void helper_clgi(void);
108
void helper_skinit(void);
109
void helper_invlpga(void);
110

    
111
/* x86 FPU */
112

    
113
void helper_flds_FT0(uint32_t val);
114
void helper_fldl_FT0(uint64_t val);
115
void helper_fildl_FT0(int32_t val);
116
void helper_flds_ST0(uint32_t val);
117
void helper_fldl_ST0(uint64_t val);
118
void helper_fildl_ST0(int32_t val);
119
void helper_fildll_ST0(int64_t val);
120
uint32_t helper_fsts_ST0(void);
121
uint64_t helper_fstl_ST0(void);
122
int32_t helper_fist_ST0(void);
123
int32_t helper_fistl_ST0(void);
124
int64_t helper_fistll_ST0(void);
125
int32_t helper_fistt_ST0(void);
126
int32_t helper_fisttl_ST0(void);
127
int64_t helper_fisttll_ST0(void);
128
void helper_fldt_ST0(target_ulong ptr);
129
void helper_fstt_ST0(target_ulong ptr);
130
void helper_fpush(void);
131
void helper_fpop(void);
132
void helper_fdecstp(void);
133
void helper_fincstp(void);
134
void helper_ffree_STN(int st_index);
135
void helper_fmov_ST0_FT0(void);
136
void helper_fmov_FT0_STN(int st_index);
137
void helper_fmov_ST0_STN(int st_index);
138
void helper_fmov_STN_ST0(int st_index);
139
void helper_fxchg_ST0_STN(int st_index);
140
void helper_fcom_ST0_FT0(void);
141
void helper_fucom_ST0_FT0(void);
142
void helper_fcomi_ST0_FT0(void);
143
void helper_fucomi_ST0_FT0(void);
144
void helper_fadd_ST0_FT0(void);
145
void helper_fmul_ST0_FT0(void);
146
void helper_fsub_ST0_FT0(void);
147
void helper_fsubr_ST0_FT0(void);
148
void helper_fdiv_ST0_FT0(void);
149
void helper_fdivr_ST0_FT0(void);
150
void helper_fadd_STN_ST0(int st_index);
151
void helper_fmul_STN_ST0(int st_index);
152
void helper_fsub_STN_ST0(int st_index);
153
void helper_fsubr_STN_ST0(int st_index);
154
void helper_fdiv_STN_ST0(int st_index);
155
void helper_fdivr_STN_ST0(int st_index);
156
void helper_fchs_ST0(void);
157
void helper_fabs_ST0(void);
158
void helper_fxam_ST0(void);
159
void helper_fld1_ST0(void);
160
void helper_fldl2t_ST0(void);
161
void helper_fldl2e_ST0(void);
162
void helper_fldpi_ST0(void);
163
void helper_fldlg2_ST0(void);
164
void helper_fldln2_ST0(void);
165
void helper_fldz_ST0(void);
166
void helper_fldz_FT0(void);
167
uint32_t helper_fnstsw(void);
168
uint32_t helper_fnstcw(void);
169
void helper_fldcw(uint32_t val);
170
void helper_fclex(void);
171
void helper_fwait(void);
172
void helper_fninit(void);
173
void helper_fbld_ST0(target_ulong ptr);
174
void helper_fbst_ST0(target_ulong ptr);
175
void helper_f2xm1(void);
176
void helper_fyl2x(void);
177
void helper_fptan(void);
178
void helper_fpatan(void);
179
void helper_fxtract(void);
180
void helper_fprem1(void);
181
void helper_fprem(void);
182
void helper_fyl2xp1(void);
183
void helper_fsqrt(void);
184
void helper_fsincos(void);
185
void helper_frndint(void);
186
void helper_fscale(void);
187
void helper_fsin(void);
188
void helper_fcos(void);
189
void helper_fxam_ST0(void);
190
void helper_fstenv(target_ulong ptr, int data32);
191
void helper_fldenv(target_ulong ptr, int data32);
192
void helper_fsave(target_ulong ptr, int data32);
193
void helper_frstor(target_ulong ptr, int data32);
194
void helper_fxsave(target_ulong ptr, int data64);
195
void helper_fxrstor(target_ulong ptr, int data64);
196
target_ulong helper_bsf(target_ulong t0);
197
target_ulong helper_bsr(target_ulong t0);
198

    
199
/* MMX/SSE */
200

    
201
void TCG_HELPER_PROTO helper_enter_mmx(void);
202
void TCG_HELPER_PROTO helper_emms(void);
203
void TCG_HELPER_PROTO helper_movq(uint64_t *d, uint64_t *s);
204

    
205
#define SHIFT 0
206
#include "ops_sse_header.h"
207
#define SHIFT 1
208
#include "ops_sse_header.h"
209

    
210
target_ulong helper_rclb(target_ulong t0, target_ulong t1);
211
target_ulong helper_rclw(target_ulong t0, target_ulong t1);
212
target_ulong helper_rcll(target_ulong t0, target_ulong t1);
213
target_ulong helper_rcrb(target_ulong t0, target_ulong t1);
214
target_ulong helper_rcrw(target_ulong t0, target_ulong t1);
215
target_ulong helper_rcrl(target_ulong t0, target_ulong t1);
216
#ifdef TARGET_X86_64
217
target_ulong helper_rclq(target_ulong t0, target_ulong t1);
218
target_ulong helper_rcrq(target_ulong t0, target_ulong t1);
219
#endif
220