Merge pull request #7793 from mistydemeo/add_apple_silicon

OS::Mac::CPU: add Apple Silicon
This commit is contained in:
Misty De Meo 2020-06-22 12:51:12 -07:00 committed by GitHub
commit c1a23fc056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,12 +11,16 @@ module Hardware
case sysctl_int("hw.cputype")
when 7
:intel
when MachO::Headers::CPU_TYPE_ARM64
:arm
else
:dunno
end
end
def family
return :dunno if arm?
case sysctl_int("hw.cpufamily")
when 0x73d67300 # Yonah: Core Solo/Duo
:core