From 5f0427c253de1e746760cd5d55de88ea7af25c08 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 3 May 2024 20:16:46 -0700 Subject: [PATCH] CPUID: Adds Qualcomm Oryon product name From https://github.com/llvm/llvm-project/pull/91022 Easy enough --- FEXCore/Source/Interface/Core/CPUID.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FEXCore/Source/Interface/Core/CPUID.cpp b/FEXCore/Source/Interface/Core/CPUID.cpp index d17fdefa3..e287a7d2f 100644 --- a/FEXCore/Source/Interface/Core/CPUID.cpp +++ b/FEXCore/Source/Interface/Core/CPUID.cpp @@ -69,6 +69,8 @@ namespace ProductNames { static const char ARM_Firestorm[] = "Apple Firestorm"; static const char ARM_Icestorm[] = "Apple Icestorm"; + + static const char ARM_ORYON_1[] = "Oryon-1"; #else #endif } // namespace ProductNames @@ -140,8 +142,10 @@ void CPUIDEmu::SetupHostHybridFlag() { // CPU priority order // This is mostly arbitrary but will sort by some sort of CPU priority by performance // Relative list so things they will commonly end up in big.little configurations sort of relate - static constexpr std::array CPUMIDRs = {{ + static constexpr std::array CPUMIDRs = {{ // Typically big CPU cores + {0x51, 0x001, 1, ProductNames::ARM_ORYON_1}, // Qualcomm Oryon-1 + {0x61, 0x023, 1, ProductNames::ARM_Firestorm}, // Apple M1 Firestorm {0x41, 0xd82, 1, ProductNames::ARM_X4}, // X4