Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1093 Discussions

Highest valid sub-leaf index of CPUID(EAX = 0DH)

JWong19
Beginner
692 Views
 
I refer to the document of ISA extensions at <https://software.intel.com/sites/default/files/managed/07/b7/319433-023.pdf>. (page 2-18)
 
 
The highest valid sub-leaf index, n, is
(POPCNT(CPUID.(EAX=0D, ECX=0):EAX) + POPCNT(CPUID.(EAX=0D, ECX=0):EDX) - 1)
 
 
How to obtain this formula of the highest valid sub-leaf index of CPUID.0DH?
I expect that it should be the most-significant bit of CPUID.(EAX=0D,ECX=0).[EAX:EDX] instead, because the sub-leaf index corresponds to bit position of CPUID.(EAX=0D,ECX=0).[EAX:EDX]
 
0 Kudos
1 Solution
MarkC_Intel
Moderator
692 Views

Doc bug. 

I will ask the doc team to try sync the CPUID stuff up again. 

See the latest SDM instead: http://www.intel.com/sdm

 

 

 

 

 

 

View solution in original post

0 Kudos
2 Replies
MarkC_Intel
Moderator
693 Views

Doc bug. 

I will ask the doc team to try sync the CPUID stuff up again. 

See the latest SDM instead: http://www.intel.com/sdm

 

 

 

 

 

 

0 Kudos
JWong19
Beginner
692 Views

Thanks for confirmation of the bug

0 Kudos
Reply