{_T("comp_trustlong"), _T("How to access longs in compiler (direct/indirect/indirectKS/afterPic") },
{_T("comp_nf"), _T("Whether to optimize away flag generation where possible") },
{_T("comp_fpu"), _T("Whether to provide JIT FPU emulation") },
- {_T("compforcesettings"), _T("Whether to force the JIT compiler settings") },
{_T("cachesize"), _T("How many MB to use to buffer translated instructions")},
{_T("override_dga_address"),_T("Address from which to map the frame buffer (upper 16 bits) (DANGEROUS!)")},
- {_T("avoid_cmov"), _T("Set to yes on machines that lack the CMOV instruction") },
{_T("avoid_dga"), _T("Set to yes if the use of DGA extension creates problems") },
{_T("avoid_vid"), _T("Set to yes if the use of the Vidmode extension creates problems") },
{_T("parallel_on_demand"), _T("") },
#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_write (f, _T("cachesize"), _T("%d"), p->cachesize);
for (i = 0; i < MAX_JPORTS; i++) {
|| cfgfile_yesno (option, value, _T("sound_cdaudio"), &p->sound_cdaudio)
|| cfgfile_yesno (option, value, _T("sound_stereo_swap_paula"), &p->sound_stereo_swap_paula)
|| cfgfile_yesno (option, value, _T("sound_stereo_swap_ahi"), &p->sound_stereo_swap_ahi)
- || cfgfile_yesno (option, value, _T("avoid_cmov"), &p->avoid_cmov)
|| cfgfile_yesno (option, value, _T("log_illegal_mem"), &p->illegal_mem)
|| cfgfile_yesno (option, value, _T("filesys_no_fsdb"), &p->filesys_no_uaefsdb)
|| cfgfile_yesno (option, value, _T("gfx_blacker_than_black"), &p->gfx_blackerthanblack)
|| cfgfile_yesno (option, value, _T("comp_nf"), &p->compnf)
|| 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)
|| cfgfile_yesno (option, value, _T("floppy_write_protect"), &p->floppy_read_only)
|| cfgfile_yesno (option, value, _T("uae_hide_autoconfig"), &p->uae_hide_autoconfig)
p->compfpu = 0;
#endif
p->cachesize = 0;
- p->avoid_cmov = 0;
- p->comp_midopt = 0;
- p->comp_lowopt = 0;
p->gfx_framerate = 1;
p->gfx_autoframerate = 50;
if(currprefs.cachesize)
currprefs.illegal_mem = changed_prefs.illegal_mem;// = 0;
- currprefs.comp_midopt = changed_prefs.comp_midopt;
- currprefs.comp_lowopt = changed_prefs.comp_lowopt;
-
if ((!canbang || !currprefs.cachesize) && currprefs.comptrustbyte != 1) {
// Set all of these to indirect when canbang == 0
- // Basically, set the compforcesettings option...
currprefs.comptrustbyte = 1;
currprefs.comptrustword = 1;
currprefs.comptrustlong = 1;
currprefs.comptrustbyte, currprefs.comptrustword, currprefs.comptrustlong,
currprefs.compfpu, currprefs.compnf, currprefs.comp_constjump, currprefs.comp_hardflush);
-#if 0
- if (!currprefs.compforcesettings) {
- int stop=0;
- if (currprefs.comptrustbyte!=0 && currprefs.comptrustbyte!=3)
- stop = 1, write_log (_T("JIT: comptrustbyte is not 'direct' or 'afterpic'\n"));
- if (currprefs.comptrustword!=0 && currprefs.comptrustword!=3)
- stop = 1, write_log (_T("JIT: comptrustword is not 'direct' or 'afterpic'\n"));
- if (currprefs.comptrustlong!=0 && currprefs.comptrustlong!=3)
- stop = 1, write_log (_T("JIT: comptrustlong is not 'direct' or 'afterpic'\n"));
- if (currprefs.comptrustnaddr!=0 && currprefs.comptrustnaddr!=3)
- stop = 1, write_log (_T("JIT: comptrustnaddr is not 'direct' or 'afterpic'\n"));
- if (currprefs.compnf!=1)
- stop = 1, write_log (_T("JIT: compnf is not 'yes'\n"));
- if (currprefs.cachesize<1024)
- stop = 1, write_log (_T("JIT: cachesize is less than 1024\n"));
- if (currprefs.comp_hardflush)
- stop = 1, write_log (_T("JIT: comp_flushmode is 'hard'\n"));
- if (!canbang)
- stop = 1, write_log (_T("JIT: Cannot use most direct memory access,\n")
- " and unable to recover from failed guess!\n");
- if (stop) {
- gui_message("JIT: Configuration problems were detected!\n"
- "JIT: These will adversely affect performance, and should\n"
- "JIT: not be used. For more info, please see README.JIT-tuning\n"
- "JIT: in the UAE documentation directory. You can force\n"
- "JIT: your settings to be used by setting\n"
- "JIT: 'compforcesettings=yes'\n"
- "JIT: in your config file\n");
- exit(1);
- }
- }
-#endif
return changed;
}