Page MenuHome

Fix "Unknown CPU" on Apple Silicon
ClosedPublic

Authored by Christian Baars (Staars) on Apr 23 2021, 5:24 PM.

Details

Summary

Use SYSCTL in macOS to get cpu_brand_name on Intel and Apple Silicon Macs.
Tested on latest Big Sur 11.2.3 on both platforms.

It should change nothing of the result on Intel Macs and finally show "Apple M1" on the latest ARM64 Macs.

Diff Detail

Event Timeline

Christian Baars (Staars) requested review of this revision.Apr 23 2021, 5:24 PM
Christian Baars (Staars) created this revision.

I understand what it does, but I'm not familiar with macOS, so can't rate the solution. Semantically it looks good to me. So if it works I see no problem with committing this.

This revision is now accepted and ready to land.Apr 29 2021, 3:53 PM