How software 'interrogates' your computer's brain for its secret identity

How software 'interrogates' your computer's brain for its secret identity
Image: Intellect (generated)

In short: Before 1993, identifying a processor was like solving a puzzle of side effects. Programmers had to trigger intentional errors or measure tiny timing differences just to see what hardware they were running on. Today, a single instruction—CPUID—acts as a formal ID card for the silicon.

Introduced by Intel in 1993 with the Pentium and late 486 processors, the CPUID instruction (opcode 0F A2) standardized how software discovers hardware details. Before its existence, developers relied on 'esoteric' methods. For instance, on the Motorola 68000 series, programmers had to check if certain instructions triggered privileged error conditions to distinguish between different family members. Even on early x86 chips like the 80386, identifying a revision required reading specific registers only available immediately after a reset.

The CPUID mechanism works through 'leaves'—categories of information accessed by placing values in the EAX register. By calling CPUID with EAX=0, software retrieves the manufacturer ID string (a 12-character ASCII code) and the highest basic leaf supported. For example, while many chips return 'GenuineIntel', others like Transmeta used 'GenuineTMx86' for compatibility or 'TransmetaCPU' in extended leaves. Interestingly, some IDs are famous myths; strings like 'AMDisbetter!' have been cited in lore but were never actually observed on physical AMD processors.

Modern systems use these leaves to detect features like MMX or SSE and to navigate complex virtualization environments. Virtual machines often report specific identities, such as the 'ConnectixCPU' for older Connectix Virtual PCs or 'Virtual CPU' for Microsoft x86-to-ARM translations. While x86 uses this specific instruction, other architectures like ARM typically use on-chip registers to provide similar hardware transparency. As of April 2024, valid basic leaves go up to 23h, though some remain 'reserved' and undisclosed in public documentation.

Opens the Intellect+ feed with this card first. Swipe up for the next one.

Sources

  • Summary by Intellect · source: CPUID

To cite this card, link to https://intellectplus.co.uk/app/science-cpuid.

How we source, check and correct cards: Editorial standards.

General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.

Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?

Related

Finding something worth knowing…