Merge pull request #7793 from mistydemeo/add_apple_silicon
OS::Mac::CPU: add Apple Silicon
This commit is contained in:
commit
c1a23fc056
@ -11,12 +11,16 @@ module Hardware
|
|||||||
case sysctl_int("hw.cputype")
|
case sysctl_int("hw.cputype")
|
||||||
when 7
|
when 7
|
||||||
:intel
|
:intel
|
||||||
|
when MachO::Headers::CPU_TYPE_ARM64
|
||||||
|
:arm
|
||||||
else
|
else
|
||||||
:dunno
|
:dunno
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def family
|
def family
|
||||||
|
return :dunno if arm?
|
||||||
|
|
||||||
case sysctl_int("hw.cpufamily")
|
case sysctl_int("hw.cpufamily")
|
||||||
when 0x73d67300 # Yonah: Core Solo/Duo
|
when 0x73d67300 # Yonah: Core Solo/Duo
|
||||||
:core
|
:core
|
||||||
|
Loading…
x
Reference in New Issue
Block a user