inteltool: Print raw CPUID and make hexadecimal values unambiguous
The raw CPUID is useful for matching the directories under 'src/cpu/intel' and is not easy to find out otherwise because it is most often decoded already. The decoded values are not obviously hexadecimal so prepend them with 0x to make sure they are unambiguous. The output differences look like this: - CPU: Processor Type: 0, Family 6, Model 25, Stepping 2 + CPU: ID 0x20652, Processor Type 0x0, Family 0x6, Model 0x25, Stepping 0x2 Change-Id: Id47f0b00f8db931f0000451c8f63ac1e966442c4 Signed-off-by: Damien Zammit <damien@zamaudio.com> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/3788 Reviewed-by: Stefan Tauner <stefan.tauner@gmx.at> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
0d2119da46
commit
dcea700762
|
@ -374,8 +374,8 @@ int main(int argc, char *argv[])
|
|||
* left-shifted "Extended Model" fields.
|
||||
* http://download.intel.com/design/processor/applnots/24161832.pdf
|
||||
*/
|
||||
printf("CPU: Processor Type: %x, Family %x, Model %x, Stepping %x\n",
|
||||
(id >> 12) & 0x3, ((id >> 8) & 0xf) + ((id >> 20) & 0xff),
|
||||
printf("CPU: ID 0x%x, Processor Type 0x%x, Family 0x%x, Model 0x%x, Stepping 0x%x\n",
|
||||
id, (id >> 12) & 0x3, ((id >> 8) & 0xf) + ((id >> 20) & 0xff),
|
||||
((id >> 12) & 0xf0) + ((id >> 4) & 0xf), (id & 0xf));
|
||||
|
||||
/* Determine names */
|
||||
|
|
Loading…
Reference in New Issue