Skip to content

Commit e2ed60b

Browse files
committed
cpuid-dump should handle leaf 0x1f
Per Intel's April 2023 documentation (https://cdrdv2-public.intel.com/775917/intel-64-architecture-processor-topology-enumeration.pdf): > The extended topology enumeration leaf of CPUID (leaf 0BH) was introduced > in 2009 along with the x2APIC IDs. This leaf has been superseded by the > v2 extended topology enumeration leaf (CPUID leaf 1FH), which is the > preferred interface for system topology enumeration for current Intel 64 > processors
1 parent cd79485 commit e2ed60b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/cpuid-dump.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ int main(int argc, char** argv) {
9292
}
9393
break;
9494
case UINT32_C(0x0000000B):
95+
case UINT32_C(0x0000001F): // Extended/V2
9596
for (uint32_t ecx = 0;; ecx++) {
9697
const struct cpuid_regs regs = cpuidex(eax, ecx);
9798
if ((regs.ecx & UINT32_C(0x0000FF00)) == 0) {

0 commit comments

Comments
 (0)