Skip to content

Commit

Permalink
Only toggle JIT if JIT is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Feb 21, 2022
1 parent 318f307 commit 47d4bea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/inputdevice.cpp
Expand Up @@ -4747,6 +4747,7 @@ static bool inputdevice_handle_inputcode2(int monid, int code, int state, const
host_poweroff = true;
break;
case AKS_TOGGLE_JIT:
#ifdef JIT
if (currprefs.cachesize == 0)
{
currprefs.cpu_compatible = changed_prefs.cpu_compatible = false;
Expand All @@ -4762,9 +4763,12 @@ static bool inputdevice_handle_inputcode2(int monid, int code, int state, const
currprefs.compfpu = changed_prefs.compfpu = false;
}
fixup_prefs(&changed_prefs, true);
#endif
break;
case AKS_TOGGLE_JIT_FPU:
#ifdef USE_JIT_FPU
currprefs.compfpu = changed_prefs.compfpu = !currprefs.compfpu;
#endif
break;
#endif
}
Expand Down

0 comments on commit 47d4bea

Please sign in to comment.