From 571b0fe47ead320e4a7c6d765a037bf703a8080e Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sat, 23 Sep 2023 00:52:23 -0700 Subject: [PATCH] Config: Fixes core sanitization This would have caused core to try and initialize a custom core on Arm64, which causes a std::function assert because it doesn't support that. Users would likely get hit by this immediately since we deleted the interpreter and shifted all the core numbers. --- FEXCore/Source/Interface/Config/Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FEXCore/Source/Interface/Config/Config.cpp b/FEXCore/Source/Interface/Config/Config.cpp index f93fe1128..93c9fffe3 100644 --- a/FEXCore/Source/Interface/Config/Config.cpp +++ b/FEXCore/Source/Interface/Config/Config.cpp @@ -335,9 +335,9 @@ namespace DefaultValues { // Sanitize Core option FEX_CONFIG_OPT(Core, CORE); #if (_M_X86_64) - constexpr uint32_t MaxCoreNumber = 2; -#else constexpr uint32_t MaxCoreNumber = 1; +#else + constexpr uint32_t MaxCoreNumber = 0; #endif if (Core > MaxCoreNumber) { // Sanitize the core option by setting the core to the JIT if invalid