converted x87 FPU ops to TCG
[qemu] / target-i386 / helper.h
1 #define TCG_HELPER_PROTO
2
3 void TCG_HELPER_PROTO helper_divl_EAX_T0(target_ulong t0);
4 void TCG_HELPER_PROTO helper_idivl_EAX_T0(target_ulong t0);
5
6 /* x86 FPU */
7
8 void helper_flds_FT0(uint32_t val);
9 void helper_fldl_FT0(uint64_t val);
10 void helper_fildl_FT0(int32_t val);
11 void helper_flds_ST0(uint32_t val);
12 void helper_fldl_ST0(uint64_t val);
13 void helper_fildl_ST0(int32_t val);
14 void helper_fildll_ST0(int64_t val);
15 uint32_t helper_fsts_ST0(void);
16 uint64_t helper_fstl_ST0(void);
17 int32_t helper_fist_ST0(void);
18 int32_t helper_fistl_ST0(void);
19 int64_t helper_fistll_ST0(void);
20 int32_t helper_fistt_ST0(void);
21 int32_t helper_fisttl_ST0(void);
22 int64_t helper_fisttll_ST0(void);
23 void helper_fldt_ST0(target_ulong ptr);
24 void helper_fstt_ST0(target_ulong ptr);
25 void helper_fpush(void);
26 void helper_fpop(void);
27 void helper_fdecstp(void);
28 void helper_fincstp(void);
29 void helper_ffree_STN(int st_index);
30 void helper_fmov_ST0_FT0(void);
31 void helper_fmov_FT0_STN(int st_index);
32 void helper_fmov_ST0_STN(int st_index);
33 void helper_fmov_STN_ST0(int st_index);
34 void helper_fxchg_ST0_STN(int st_index);
35 void helper_fcom_ST0_FT0(void);
36 void helper_fucom_ST0_FT0(void);
37 void helper_fcomi_ST0_FT0(void);
38 void helper_fucomi_ST0_FT0(void);
39 void helper_fadd_ST0_FT0(void);
40 void helper_fmul_ST0_FT0(void);
41 void helper_fsub_ST0_FT0(void);
42 void helper_fsubr_ST0_FT0(void);
43 void helper_fdiv_ST0_FT0(void);
44 void helper_fdivr_ST0_FT0(void);
45 void helper_fadd_STN_ST0(int st_index);
46 void helper_fmul_STN_ST0(int st_index);
47 void helper_fsub_STN_ST0(int st_index);
48 void helper_fsubr_STN_ST0(int st_index);
49 void helper_fdiv_STN_ST0(int st_index);
50 void helper_fdivr_STN_ST0(int st_index);
51 void helper_fchs_ST0(void);
52 void helper_fabs_ST0(void);
53 void helper_fxam_ST0(void);
54 void helper_fld1_ST0(void);
55 void helper_fldl2t_ST0(void);
56 void helper_fldl2e_ST0(void);
57 void helper_fldpi_ST0(void);
58 void helper_fldlg2_ST0(void);
59 void helper_fldln2_ST0(void);
60 void helper_fldz_ST0(void);
61 void helper_fldz_FT0(void);
62 uint32_t helper_fnstsw(void);
63 uint32_t helper_fnstcw(void);
64 void helper_fldcw(uint32_t val);
65 void helper_fclex(void);
66 void helper_fwait(void);
67 void helper_fninit(void);
68 void helper_fbld_ST0(target_ulong ptr);
69 void helper_fbst_ST0(target_ulong ptr);
70 void helper_f2xm1(void);
71 void helper_fyl2x(void);
72 void helper_fptan(void);
73 void helper_fpatan(void);
74 void helper_fxtract(void);
75 void helper_fprem1(void);
76 void helper_fprem(void);
77 void helper_fyl2xp1(void);
78 void helper_fsqrt(void);
79 void helper_fsincos(void);
80 void helper_frndint(void);
81 void helper_fscale(void);
82 void helper_fsin(void);
83 void helper_fcos(void);
84 void helper_fxam_ST0(void);
85 void helper_fstenv(target_ulong ptr, int data32);
86 void helper_fldenv(target_ulong ptr, int data32);
87 void helper_fsave(target_ulong ptr, int data32);
88 void helper_frstor(target_ulong ptr, int data32);
89 void helper_fxsave(target_ulong ptr, int data64);
90 void helper_fxrstor(target_ulong ptr, int data64);
91
92 /* MMX/SSE */
93
94 void TCG_HELPER_PROTO helper_enter_mmx(void);
95 void TCG_HELPER_PROTO helper_emms(void);
96 void TCG_HELPER_PROTO helper_movq(uint64_t *d, uint64_t *s);
97
98 #define SHIFT 0
99 #include "ops_sse_header.h"
100 #define SHIFT 1
101 #include "ops_sse_header.h"
102