Old processors -like Pentium 4- provide cache information via descriptors available in cpuid leaf 2. https://www.felixcloutier.com/x86/cpuid#input-eax-=-02h--tlb-cache-prefetch-information-returned-in-eax--ebx--ecx--edx On newer processors this information is provided via leaf 0x00000004 for Intel and leaf 0x8000001D for AMD. Both detection run [sequentially](https://github.com/google/cpu_features/blob/4a81f3756e4eb3f2d89055fca8c1fd1a431a7bfe/src/cpuinfo_x86.c#L1457-L1458). Unfortunately the `ParseCacheInfo` function [overrides](https://github.com/google/cpu_features/blob/4a81f3756e4eb3f2d89055fca8c1fd1a431a7bfe/src/cpuinfo_x86.c#L1149-L1174) the `CacheInfo` data already setup by `ParseLeaf2`.
Activity
gchatelet commentedon Oct 28, 2021
This patch introduced