Revision 79383c9c target-i386/exec.h
b/target-i386/exec.h | ||
---|---|---|
31 | 31 |
|
32 | 32 |
register struct CPUX86State *env asm(AREG0); |
33 | 33 |
|
34 |
extern FILE *logfile; |
|
35 |
extern int loglevel; |
|
34 |
#include "qemu-log.h" |
|
36 | 35 |
|
37 | 36 |
#define EAX (env->regs[R_EAX]) |
38 | 37 |
#define ECX (env->regs[R_ECX]) |
... | ... | |
58 | 57 |
#include "cpu.h" |
59 | 58 |
#include "exec-all.h" |
60 | 59 |
|
61 |
void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0); |
|
62 | 60 |
void cpu_x86_update_cr3(CPUX86State *env, target_ulong new_cr3); |
63 | 61 |
void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4); |
64 | 62 |
int cpu_x86_handle_mmu_fault(CPUX86State *env, target_ulong addr, |
65 | 63 |
int is_write, int mmu_idx, int is_softmmu); |
66 |
void tlb_fill(target_ulong addr, int is_write, int mmu_idx, |
|
67 |
void *retaddr); |
|
68 | 64 |
void __hidden cpu_lock(void); |
69 | 65 |
void __hidden cpu_unlock(void); |
70 | 66 |
void do_interrupt(int intno, int is_int, int error_code, |
... | ... | |
120 | 116 |
#define floatx_round_to_int floatx80_round_to_int |
121 | 117 |
#define floatx_compare floatx80_compare |
122 | 118 |
#define floatx_compare_quiet floatx80_compare_quiet |
123 |
#define sin sinl |
|
124 |
#define cos cosl |
|
125 |
#define sqrt sqrtl |
|
126 |
#define pow powl |
|
127 |
#define log logl |
|
128 |
#define tan tanl |
|
129 |
#define atan2 atan2l |
|
130 |
#define floor floorl |
|
131 |
#define ceil ceill |
|
132 |
#define ldexp ldexpl |
|
133 | 119 |
#else |
134 | 120 |
#define floatx_to_int32 float64_to_int32 |
135 | 121 |
#define floatx_to_int64 float64_to_int64 |
... | ... | |
148 | 134 |
#define floatx_compare_quiet float64_compare_quiet |
149 | 135 |
#endif |
150 | 136 |
|
151 |
extern CPU86_LDouble sin(CPU86_LDouble x); |
|
152 |
extern CPU86_LDouble cos(CPU86_LDouble x); |
|
153 |
extern CPU86_LDouble sqrt(CPU86_LDouble x); |
|
154 |
extern CPU86_LDouble pow(CPU86_LDouble, CPU86_LDouble); |
|
155 |
extern CPU86_LDouble log(CPU86_LDouble x); |
|
156 |
extern CPU86_LDouble tan(CPU86_LDouble x); |
|
157 |
extern CPU86_LDouble atan2(CPU86_LDouble, CPU86_LDouble); |
|
158 |
extern CPU86_LDouble floor(CPU86_LDouble x); |
|
159 |
extern CPU86_LDouble ceil(CPU86_LDouble x); |
|
160 |
|
|
161 | 137 |
#define RC_MASK 0xc00 |
162 | 138 |
#define RC_NEAR 0x000 |
163 | 139 |
#define RC_DOWN 0x400 |
Also available in: Unified diff