]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Disable JIT FPU if no FPU enabled.
authorToni Wilen <twilen@winuae.net>
Sat, 26 Nov 2022 17:46:47 +0000 (19:46 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 26 Nov 2022 17:46:47 +0000 (19:46 +0200)
main.cpp
od-win32/win32gui.cpp

index 10f1cf337ac2bc766ea700c7460b142b9a1cbeb1..a30791f8484dfc821d4aaab8713ad2d4877e8f91 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -288,6 +288,9 @@ void fixup_cpu (struct uae_prefs *p)
                p->cachesize = 0;
                error_log (_T("JIT requires 68020 or better CPU."));
        }
+       if (p->fpu_model == 0 && p->compfpu) {
+               p->compfpu = false;
+       }
 
        if (!p->cpu_memory_cycle_exact && p->cpu_cycle_exact)
                p->cpu_memory_cycle_exact = true;
index fe11b0d071191f6fdb4b5ad891f1e4a5957ac6eb..6891caa1cfadd6bada50b7120728ed70185806b1 100644 (file)
@@ -13084,9 +13084,6 @@ static void enable_for_cpudlg (HWND hDlg)
 
        ew(hDlg, IDC_SPEED, !workprefs.cpu_cycle_exact);
        ew(hDlg, IDC_COMPATIBLE24, workprefs.cpu_model <= 68030);
-       //ew(hDlg, IDC_CS_HOST, !workprefs.cpu_cycle_exact);
-       //ew(hDlg, IDC_CS_68000, !workprefs.cpu_cycle_exact);
-       //ew(hDlg, IDC_CS_ADJUSTABLE, !workprefs.cpu_cycle_exact);
        ew(hDlg, IDC_CPUIDLE, workprefs.m68k_speed != 0 ? TRUE : FALSE);
        ew(hDlg, IDC_PPC_CPUIDLE, workprefs.ppc_mode != 0);
        ew(hDlg, IDC_SPEED_x86, is_x86_cpu(&workprefs));
@@ -13112,7 +13109,7 @@ static void enable_for_cpudlg (HWND hDlg)
        ew(hDlg, IDC_TRUST1, enable);
        ew(hDlg, IDC_HARDFLUSH, enable);
        ew(hDlg, IDC_CONSTJUMP, enable);
-       ew(hDlg, IDC_JITFPU, enable);
+       ew(hDlg, IDC_JITFPU, enable && workprefs.fpu_model > 0);
        ew(hDlg, IDC_JITCRASH, enable);
        ew(hDlg, IDC_NOFLAGS, enable);
        ew(hDlg, IDC_CS_CACHE_TEXT, enable);
@@ -13199,7 +13196,7 @@ static void values_to_cpudlg(HWND hDlg, WPARAM wParam)
 
        CheckDlgButton(hDlg, IDC_JITCRASH, workprefs.comp_catchfault);
        CheckDlgButton(hDlg, IDC_NOFLAGS, workprefs.compnf);
-       CheckDlgButton(hDlg, IDC_JITFPU, workprefs.compfpu);
+       CheckDlgButton(hDlg, IDC_JITFPU, workprefs.compfpu && workprefs.fpu_model > 0);
        CheckDlgButton(hDlg, IDC_HARDFLUSH, workprefs.comp_hardflush);
        CheckDlgButton(hDlg, IDC_CONSTJUMP, workprefs.comp_constjump);
        CheckDlgButton(hDlg, IDC_JITENABLE, workprefs.cachesize > 0);