Skip to content

Commit 5dd7ca4

Browse files
Ahmed S. DarwishKAGA-KOKO
authored andcommitted
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: Ahmed S. Darwish <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent a52e735 commit 5dd7ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/arch/x86/kcpuid/kcpuid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static void raw_dump_range(struct cpuid_range *range)
203203
}
204204
}
205205

206-
#define MAX_SUBLEAF_NUM 32
206+
#define MAX_SUBLEAF_NUM 64
207207
struct cpuid_range *setup_cpuid_range(u32 input_eax)
208208
{
209209
u32 max_func, idx_func;

0 commit comments

Comments
 (0)