Skip to content

Commit

Permalink
feat(iOS): add Apple A17 Pro support in CPU family
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerz0624 committed Oct 23, 2023
1 parent 91ad395 commit 3bf85d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/backend/cpu/CPURuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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

Expand Down

0 comments on commit 3bf85d6

Please sign in to comment.