From a551f1e3a9968c54dd45b057bb1b078587e6585a Mon Sep 17 00:00:00 2001 From: Chips-fr Date: Sun, 6 Sep 2015 17:39:20 +0200 Subject: [PATCH] Enable JIT by default --- src/cfgfile.cpp | 2 +- src/include/options.h | 2 ++ src/od-pandora/gui/PanelCPU.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cfgfile.cpp b/src/cfgfile.cpp index 5394b4a3..66331d69 100644 --- a/src/cfgfile.cpp +++ b/src/cfgfile.cpp @@ -1841,7 +1841,7 @@ void default_prefs (struct uae_prefs *p, int type) p->sound_filter_type = 0; p->sound_auto = 1; - p->cachesize = 0; + p->cachesize = DEFAULT_JIT_CACHE_SIZE; for (i = 0;i < 10; i++) p->optcount[i] = -1; diff --git a/src/include/options.h b/src/include/options.h index 669d972b..aaeeef8f 100644 --- a/src/include/options.h +++ b/src/include/options.h @@ -21,6 +21,8 @@ struct strlist { int unknown; }; +#define DEFAULT_JIT_CACHE_SIZE 8192 + #define PREFS_GFX_WIDTH 320 #define PREFS_GFX_HEIGHT 240 diff --git a/src/od-pandora/gui/PanelCPU.cpp b/src/od-pandora/gui/PanelCPU.cpp index 4331a179..a0b0958b 100644 --- a/src/od-pandora/gui/PanelCPU.cpp +++ b/src/od-pandora/gui/PanelCPU.cpp @@ -153,7 +153,7 @@ class JITActionListener : public gcn::ActionListener if (chkJIT->isSelected()) { changed_prefs.cpu_compatible = 0; - changed_prefs.cachesize = 8192; + changed_prefs.cachesize = DEFAULT_JIT_CACHE_SIZE; } else {