klauspost / cpuid

CPU feature identification for Go
MIT License
1.04k stars 128 forks source link

Darwin L1 Data Cache fix #122

Closed ironiridis closed 2 years ago

ironiridis commented 2 years ago

It appears there was a copy-paste error when implementing the L1 icache and dcache detection for Apple's silicon. This PR includes a test that detects the discrepancy and the fix.

Fixes #121

ironiridis commented 2 years ago

@klauspost For your review, per your comment.