cfgfile_write_bool (f, _T("comp_constjump"), p->comp_constjump);
cfgfile_write_bool (f, _T("comp_oldsegv"), p->comp_oldsegv);
cfgfile_write_str (f, _T("comp_flushmode"), flushmode[p->comp_hardflush]);
+#ifdef USE_JIT_FPU
cfgfile_write_bool (f, _T("compfpu"), p->compfpu);
+#endif
cfgfile_write_bool (f, _T("comp_midopt"), p->comp_midopt);
cfgfile_write_bool (f, _T("comp_lowopt"), p->comp_lowopt);
cfgfile_write_bool (f, _T("avoid_cmov"), p->avoid_cmov);
|| cfgfile_yesno (option, value, _T("comp_constjump"), &p->comp_constjump)
|| cfgfile_yesno (option, value, _T("comp_oldsegv"), &p->comp_oldsegv)
|| cfgfile_yesno (option, value, _T("compforcesettings"), &dummybool)
+#ifdef USE_JIT_FPU
|| cfgfile_yesno (option, value, _T("compfpu"), &p->compfpu)
+#endif
|| cfgfile_yesno (option, value, _T("comp_midopt"), &p->comp_midopt)
|| cfgfile_yesno (option, value, _T("comp_lowopt"), &p->comp_lowopt)
|| cfgfile_yesno (option, value, _T("rtg_nocustom"), &p->picasso96_nocustom)
p->comp_hardflush = 0;
p->comp_constjump = 1;
p->comp_oldsegv = 0;
+#ifdef USE_JIT_FPU
p->compfpu = 1;
+#else
+ p->compfpu = 0;
+#endif
p->cachesize = 0;
p->avoid_cmov = 0;
p->comp_midopt = 0;
#endif
static uae_u32 current_cache_size = 0; // Cache grows upwards: how much has been consumed already
static bool lazy_flush = true; // Flag: lazy translation cache invalidation
-static bool avoid_fpu = true; // Flag: compile FPU instructions ?
+#ifdef UAE
+#ifdef USE_JIT_FPU
+#define avoid_fpu (!currprefs.compfpu)
+#else
+#define avoid_fpu (true)
+#endif
+#else
+static bool avoid_fpu = true; // Flag: compile FPU instructions ?
+#endif
static bool have_cmov = false; // target has CMOV instructions ?
static bool have_lahf_lm = true; // target has LAHF supported in long mode ?
static bool have_rat_stall = true; // target has partial register stalls ?
prop[cft_map(tbl[i].opcode)].is_addx = isaddx;
bool uses_fpu = (tbl[i].specific & COMP_OPCODE_USES_FPU) != 0;
-#ifdef UAE
-#ifdef USE_JIT_FPU
- avoid_fpu = false;
-#else
- avoid_fpu = true;
-#endif
-#endif
if (uses_fpu && avoid_fpu)
compfunctbl[cft_map(tbl[i].opcode)] = NULL;
else
#define UAE_FILESYS_THREADS
#define AUTOCONFIG /* autoconfig support, fast ram, harddrives etc.. */
#define JIT /* JIT compiler support */
+#define USE_JIT_FPU
#define NATMEM_OFFSET natmem_offset
#define USE_NORMAL_CALLING_CONVENTION 0
#define USE_X86_FPUCW 1