lkml.org 
[lkml]   [2023]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [tip: perf/core] x86/cpu: Add helper function to get the type of the current hybrid CPU
Date
> I read the SDM again. It seems that cpuid_eax(0x0000001a) already returns
> 0 when the leaf does not exist.

Quick correction. SDM says that read of an unimplemented leaf will return 0 in all registers
if the leaf you try to read is not the highest one. But if you try to read a leaf higher than the
highest implemented on, then CPUID returns data from the highest implemented leaf.

E.g. my CLX system only goes up to leaf 0x16. So, on my system, cpuid_eax(0x0000001a)
would return 0x00000ce4

-Tony
\
 
 \ /
  Last update: 2023-05-10 21:16    [W:0.052 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site