Skip to content

Commit e0f8b4f

Browse files
authored
Merge pull request #4000 from martin-frbg/applem2
Support Apple A15/M2 cpus through the existing VORTEX target
2 parents 326b200 + caa2945 commit e0f8b4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpuid_arm64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ int detect(void)
268268
#else
269269
#ifdef __APPLE__
270270
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
271-
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX;
271+
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX; //A12/M1
272+
if (value == 3660830781) return CPU_VORTEX; //A15/M2
272273
#endif
273274
return CPU_ARMV8;
274275
#endif

0 commit comments

Comments
 (0)