Commit 5dd7ca42 authored by Ahmed S. Darwish's avatar Ahmed S. Darwish Committed by Thomas Gleixner
Browse files

tools/x86/kcpuid: Set max possible subleaves count to 64



cpuid.csv will be extended in further commits with all-publicly-known
CPUID leaves and bitfields.  One of the new leaves is 0xd for extended
CPU state enumeration.  Depending on XCR0 dword bits, it can export up to
64 subleaves.

Set kcpuid.c MAX_SUBLEAF_NUM to 64.

Signed-off-by: default avatarAhmed S. Darwish <darwi@linutronix.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240718134755.378115-4-darwi@linutronix.de
parent a52e735f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ static void raw_dump_range(struct cpuid_range *range)
	}
}

#define MAX_SUBLEAF_NUM		32
#define MAX_SUBLEAF_NUM		64
struct cpuid_range *setup_cpuid_range(u32 input_eax)
{
	u32 max_func, idx_func;