Skip to content

Commit

Permalink
Merge pull request #2626 from jokerz0624/support_a17pro
Browse files Browse the repository at this point in the history
feat(iOS): add Apple A17 Pro support in CPU family
  • Loading branch information
jxt1234 authored Nov 10, 2023
2 parents 7e8eb65 + 3bf85d6 commit 4bf8f25
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 4bf8f25

Please sign in to comment.