From 405aeac2d8a3a7c4aaa929b06492df3a77b6a4f1 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sat, 18 Dec 2021 22:39:57 +0100 Subject: [PATCH 1/3] Add latest CPUs --- Library/Homebrew/extend/os/mac/hardware/cpu.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index 64f10ec65c..b8ec01ac13 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -107,6 +107,8 @@ module Hardware :arm_lightning_thunder when 0x573b5eec, 0x1b588bb3 # ARMv8.4-A (Firestorm, Icestorm) :arm_firestorm_icestorm + when 0xda33d83d # ARMv8.4-A (Blizzard, Avalanche) + :arm_blizzard_avalanche else :dunno end @@ -138,6 +140,8 @@ module Hardware :kabylake when 0x38435547 # Ice Lake :icelake + when 0x1cf8a03e # Comet Lake + :cometlake else :dunno end From 48f772c58527b13a09fd790eceb472513363542e Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sun, 19 Dec 2021 09:27:08 +0100 Subject: [PATCH 2/3] Add new CPUs to test --- Library/Homebrew/test/hardware/cpu_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/test/hardware/cpu_spec.rb b/Library/Homebrew/test/hardware/cpu_spec.rb index 5d307c4c43..a0ec80d7ef 100644 --- a/Library/Homebrew/test/hardware/cpu_spec.rb +++ b/Library/Homebrew/test/hardware/cpu_spec.rb @@ -28,6 +28,7 @@ describe Hardware::CPU do :amd_k10, :amd_k12, :arm, + :arm_blizzard_avalanche, :arm_firestorm_icestorm, :arm_hurricane_zephyr, :arm_lightning_thunder, @@ -40,6 +41,7 @@ describe Hardware::CPU do :broadwell, :bulldozer, :cannonlake, + :cometlake, :core, :core2, :dothan, From 56bc22c68ae77d6342dc931bc44c0d2b6cb46068 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Wed, 22 Dec 2021 16:31:30 +0100 Subject: [PATCH 3/3] Blizzard and Avalanche appear to be ARMv8.5-A --- Library/Homebrew/extend/os/mac/hardware/cpu.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index b8ec01ac13..7d08694d85 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -107,7 +107,7 @@ module Hardware :arm_lightning_thunder when 0x573b5eec, 0x1b588bb3 # ARMv8.4-A (Firestorm, Icestorm) :arm_firestorm_icestorm - when 0xda33d83d # ARMv8.4-A (Blizzard, Avalanche) + when 0xda33d83d # ARMv8.5-A (Blizzard, Avalanche) :arm_blizzard_avalanche else :dunno