1 |
|
/* |
2 |
|
* fpu/flags.h - Floating-point flags |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2004 Christian Bauer |
5 |
|
* |
6 |
|
* MC68881/68040 fpu emulation |
7 |
|
* |
49 |
|
/* -------------------------------------------------------------------------- */ |
50 |
|
|
51 |
|
/* Optimized i386 fpu core must use native flags */ |
52 |
< |
#if defined(FPU_X86) && defined(X86_ASSEMBLY) |
52 |
> |
#if defined(FPU_X86) && defined(USE_X87_ASSEMBLY) |
53 |
|
# undef FPU_USE_GENERIC_FLAGS |
54 |
|
# define FPU_USE_X86_FLAGS |
55 |
|
#endif |
56 |
|
|
57 |
|
/* Old UAE FPU core can use native flags */ |
58 |
< |
#if defined(FPU_UAE) && defined(X86_ASSEMBLY) |
58 |
> |
#if defined(FPU_UAE) && defined(USE_X87_ASSEMBLY) |
59 |
|
# undef FPU_USE_GENERIC_FLAGS |
60 |
|
# define FPU_USE_X86_FLAGS |
61 |
|
#endif |
67 |
|
#endif |
68 |
|
|
69 |
|
/* JIT Compilation for FPU only works with lazy evaluation of FPU flags */ |
70 |
< |
#if defined(FPU_IEEE) && defined(X86_ASSEMBLY) && defined(USE_JIT_FPU) |
70 |
> |
#if defined(FPU_IEEE) && defined(USE_X87_ASSEMBLY) && defined(USE_JIT_FPU) |
71 |
|
# undef FPU_USE_GENERIC_FLAGS |
72 |
|
# define FPU_USE_LAZY_FLAGS |
73 |
|
#endif |
126 |
|
#endif /* FPU_UAE */ |
127 |
|
|
128 |
|
/* Return the address of the floating-point condition codes truth table */ |
129 |
< |
PUBLIC inline uae_u8 * const FFPU address_of_fpcond_truth_table(void) |
129 |
> |
static inline uae_u8 * const FFPU address_of_fpcond_truth_table(void) |
130 |
|
{ return ((uae_u8*)&fpcond_truth_table[0][0]); } |
131 |
|
|
132 |
|
#endif /* FPU_X86_USE_NATIVE_FLAGS */ |
217 |
|
/* -------------------------------------------------------------------------- */ |
218 |
|
|
219 |
|
/* Return the address of the floating-point condition codes register */ |
220 |
< |
PUBLIC inline uae_u32 * const FFPU address_of_fpccr(void) |
220 |
> |
static inline uae_u32 * const FFPU address_of_fpccr(void) |
221 |
|
{ return ((uae_u32 *)& FPU fpsr.condition_codes); } |
222 |
|
|
223 |
|
#endif /* FPU_FLAGS_H */ |