diff options
author | Nikita Shulga <nshulga@fb.com> | 2020-11-19 04:25:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 04:25:18 +0300 |
commit | ed8b86a253800bafdb7b25c5c399f91bff9cb1f3 (patch) | |
tree | 7ce8843cfa40d1f5d0a94bfcc551f20850a76539 /include | |
parent | 63b254577ed77a8004a9be6ac707f3dccc4e1fd9 (diff) |
Fix build for Apple Silicon (#48)
* Fix build for Apple Silicon
MacOS machines based on Apple M1 silicon are identified by cmake as "arm64"
Modify build rules accordingly to recognize "arm64" is valid CPU configuration for cpuinfo
* Add CPUFAMILY_ARM_FIRESTORM_ICESTORM switch case
* Update comment in src/arm/mach/init.c
Diffstat (limited to 'include')
-rw-r--r-- | include/cpuinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cpuinfo.h b/include/cpuinfo.h index 85ce174..e2e6564 100644 --- a/include/cpuinfo.h +++ b/include/cpuinfo.h @@ -484,6 +484,10 @@ enum cpuinfo_uarch { cpuinfo_uarch_lightning = 0x00700109, /** Apple A13 processor (little cores). */ cpuinfo_uarch_thunder = 0x0070010A, + /** Apple M1 processor (big cores). */ + cpuinfo_uarch_firestorm = 0x0070010B, + /** Apple M1 processor (little cores). */ + cpuinfo_uarch_icestorm = 0x0070010C, /** Cavium ThunderX. */ cpuinfo_uarch_thunderx = 0x00800100, |