diff options
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/Platform.cpp | 7 | ||||
-rw-r--r-- | src/frontend/qt_sdl/PlatformConfig.cpp | 20 | ||||
-rw-r--r-- | src/frontend/qt_sdl/PlatformConfig.h | 8 |
3 files changed, 35 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp index 08190d6..0d31e27 100644 --- a/src/frontend/qt_sdl/Platform.cpp +++ b/src/frontend/qt_sdl/Platform.cpp @@ -133,6 +133,8 @@ int GetConfigInt(ConfigEntry entry) switch (entry) { + case JIT_MaxBlockSize: return Config::JIT_MaxBlockSize; + case DLDI_ImageSize: return imgsizes[Config::DLDISize]; case DSiSD_ImageSize: return imgsizes[Config::DSiSDSize]; @@ -145,6 +147,11 @@ bool GetConfigBool(ConfigEntry entry) { switch (entry) { + case JIT_Enable: return Config::JIT_Enable != 0; + case JIT_LiteralOptimizations: return Config::JIT_LiteralOptimisations != 0; + case JIT_BranchOptimizations: return Config::JIT_BranchOptimisations != 0; + case JIT_FastMemory: return Config::JIT_FastMemory != 0; + case DLDI_Enable: return Config::DLDIEnable != 0; case DLDI_ReadOnly: return Config::DLDIReadOnly != 0; case DLDI_FolderSync: return Config::DLDIFolderSync != 0; diff --git a/src/frontend/qt_sdl/PlatformConfig.cpp b/src/frontend/qt_sdl/PlatformConfig.cpp index e01e4c9..a224b66 100644 --- a/src/frontend/qt_sdl/PlatformConfig.cpp +++ b/src/frontend/qt_sdl/PlatformConfig.cpp @@ -63,6 +63,14 @@ int ShowOSD; int ConsoleType; int DirectBoot; +#ifdef JIT_ENABLED +int JIT_Enable = false; +int JIT_MaxBlockSize = 32; +int JIT_BranchOptimisations = true; +int JIT_LiteralOptimisations = true; +int JIT_FastMemory = true; +#endif + int DLDIEnable; char DLDISDPath[1024]; int DLDISize; @@ -186,6 +194,18 @@ ConfigEntry PlatformConfigFile[] = {"ConsoleType", 0, &ConsoleType, 0, NULL, 0}, {"DirectBoot", 0, &DirectBoot, 1, NULL, 0}, +#ifdef JIT_ENABLED + {"JIT_Enable", 0, &JIT_Enable, 0, NULL, 0}, + {"JIT_MaxBlockSize", 0, &JIT_MaxBlockSize, 32, NULL, 0}, + {"JIT_BranchOptimisations", 0, &JIT_BranchOptimisations, 1, NULL, 0}, + {"JIT_LiteralOptimisations", 0, &JIT_LiteralOptimisations, 1, NULL, 0}, + #ifdef __APPLE__ + {"JIT_FastMemory", 0, &JIT_FastMemory, 0, NULL, 0}, + #else + {"JIT_FastMemory", 0, &JIT_FastMemory, 1, NULL, 0}, + #endif +#endif + {"DLDIEnable", 0, &DLDIEnable, 0, NULL, 0}, {"DLDISDPath", 1, DLDISDPath, 0, "dldi.bin", 1023}, {"DLDISize", 0, &DLDISize, 0, NULL, 0}, diff --git a/src/frontend/qt_sdl/PlatformConfig.h b/src/frontend/qt_sdl/PlatformConfig.h index 3e7bf85..891606c 100644 --- a/src/frontend/qt_sdl/PlatformConfig.h +++ b/src/frontend/qt_sdl/PlatformConfig.h @@ -79,6 +79,14 @@ extern int ShowOSD; extern int ConsoleType; extern int DirectBoot; +#ifdef JIT_ENABLED +extern int JIT_Enable; +extern int JIT_MaxBlockSize; +extern int JIT_BranchOptimisations; +extern int JIT_LiteralOptimisations; +extern int JIT_FastMemory; +#endif + extern int DLDIEnable; extern char DLDISDPath[1024]; extern int DLDISize; |