From 3bf85d63b9575831064a2ca7f4d9203efbf5c0eb Mon Sep 17 00:00:00 2001 From: jokerz0624 <2412711011@qq.com> Date: Mon, 23 Oct 2023 18:54:57 +0800 Subject: [PATCH] feat(iOS): add Apple A17 Pro support in CPU family --- source/backend/cpu/CPURuntime.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/backend/cpu/CPURuntime.cpp b/source/backend/cpu/CPURuntime.cpp index e810e7e95..06d3604f1 100644 --- a/source/backend/cpu/CPURuntime.cpp +++ b/source/backend/cpu/CPURuntime.cpp @@ -1507,6 +1507,10 @@ void cpuinfo_arm_init(struct cpuinfo_arm_isa* cpuinfo_isa) { // A16 #ifndef CPUFAMILY_ARM_EVEREST_SAWTOOTH #define CPUFAMILY_ARM_EVEREST_SAWTOOTH 0x8765edea +#endif +// A17 Pro +#ifndef CPUFAMILY_ARM_PCORE_ECORE_COLL +#define CPUFAMILY_ARM_PCORE_ECORE_COLL 0x2876f5b5 #endif const uint32_t cpu_family = get_sys_info_by_name("hw.cpufamily"); @@ -1518,12 +1522,14 @@ void cpuinfo_arm_init(struct cpuinfo_arm_isa* cpuinfo_isa) { cpu_family == CPUFAMILY_ARM_LIGHTNING_THUNDER || cpu_family == CPUFAMILY_ARM_FIRESTORM_ICESTORM || cpu_family == CPUFAMILY_ARM_AVALANCHE_BLIZZARD || - cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH; + cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH || + cpu_family == CPUFAMILY_ARM_PCORE_ECORE_COLL; cpuinfo_isa->dot = cpu_family == CPUFAMILY_ARM_LIGHTNING_THUNDER || cpu_family == CPUFAMILY_ARM_FIRESTORM_ICESTORM || cpu_family == CPUFAMILY_ARM_AVALANCHE_BLIZZARD || - cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH; + cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH || + cpu_family == CPUFAMILY_ARM_PCORE_ECORE_COLL; #endif // iOS