Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
1135 Discussions

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

JWong19
Beginner
1,368 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
1,368 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
1,369 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
1,368 Views

Thanks for confirmation of the bug

0 Kudos
Reply