stringtranslate.com

Identificador de CPU

En la arquitectura x86 , la instrucción CPUID (identificada por un CPUID código de operación ) es una instrucción complementaria del procesador (su nombre deriva de CPU Identification) que permite al software descubrir detalles del procesador. Fue introducida por Intel en 1993 con el lanzamiento de los procesadores Pentium y SL-enhanced 486. [1]

Un programa puede usarlo CPUIDpara determinar el tipo de procesador y si están implementadas funciones como MMX / SSE .

Historia

Antes de la disponibilidad general de la CPUIDinstrucción, los programadores escribían código de máquina esotérico que explotaba pequeñas diferencias en el comportamiento de la CPU para determinar la marca y el modelo del procesador. [2] [3] [4] [5] Con la introducción del procesador 80386, EDX al reiniciar indicaba la revisión, pero esto solo era legible después del reinicio y no había una forma estándar para que las aplicaciones leyeran el valor.

Fuera de la familia x86, los desarrolladores todavía deben utilizar procesos esotéricos (que involucran sincronización de instrucciones o desencadenadores de fallas de CPU) para determinar las variaciones en el diseño de CPU que están presentes.

Por ejemplo, en la familia Motorola 680x0 (que nunca tuvo una CPUIDinstrucción de ningún tipo), ciertas instrucciones específicas requerían privilegios elevados. Estos se podían usar para diferenciar a varios miembros de la familia de CPU. En el Motorola 68010, la instrucción MOVE de SR se volvió privilegiada. Este notable cambio de instrucción (y máquina de estados) permitió que el 68010 cumpliera con los requisitos de virtualización de Popek y Goldberg . Debido a que el 68000 ofrecía una instrucción MOVE sin privilegios de SR, las 2 CPU diferentes se podían diferenciar mediante una condición de error de CPU que se desencadenaba.

Si bien la CPUIDinstrucción es específica de la arquitectura x86, otras arquitecturas (como ARM) a menudo proporcionan registros en el chip que pueden leerse de formas prescritas para obtener los mismos tipos de información proporcionada por la CPUIDinstrucción x86.

Llamada a CPUID

El CPUIDcódigo de operación es 0F A2.

En lenguaje ensamblador , la CPUIDinstrucción no toma parámetros, ya que CPUIDutiliza implícitamente el registro EAX para determinar la categoría principal de información devuelta. En la terminología más reciente de Intel, esto se denomina hoja CPUID. CPUIDdebe llamarse con EAX = 0primero, ya que esto almacenará en el registro EAX el parámetro de llamada EAX más alto (hoja) que implementa la CPU.

Para obtener información sobre la función extendida, CPUIDse debe llamar con el bit más significativo de EAX establecido. Para determinar el parámetro de llamada de función extendida más alto, llame CPUIDcon EAX = 80000000h.

Las hojas de CPUID mayores que 3 pero menores que 80000000 son accesibles solo cuando los registros específicos del modelo tienen IA32_MISC_ENABLE.BOOT_NT4 [bit 22] = 0 (que es así por defecto). Como sugiere el nombre, Windows NT 4.0 hasta SP6 no arrancaba correctamente a menos que este bit estuviera configurado, [6] pero las versiones posteriores de Windows no lo necesitan, por lo que se puede asumir que las hojas básicas mayores que 4 son visibles en los sistemas Windows actuales. A partir de abril de 2024 , las hojas básicas válidas llegan hasta 23h, pero la información devuelta por algunas hojas no se divulga en la documentación disponible públicamente, es decir, están "reservadas".

Algunas de las hojas agregadas más recientemente también tienen subhojas, que se seleccionan a través del registro ECX antes de llamar CPUID.

EAX=0: parámetro de función más alto e identificación del fabricante

Esto devuelve la cadena de identificación del fabricante de la CPU: una cadena ASCII de doce caracteres almacenada en EBX, EDX, ECX (en ese orden). El parámetro de llamada básico más alto (el valor más grande en el que se puede configurar EAX antes de llamar CPUID) se devuelve en EAX.

Aquí hay una lista de procesadores y la función más alta implementada.

Las siguientes son cadenas de identificación de fabricantes de procesadores conocidas:

Las siguientes son cadenas de identificación utilizadas por núcleos de CPU de código abierto :

Las siguientes son cadenas de identificación conocidas de máquinas virtuales:

Por ejemplo, en un procesador GenuineIntel, los valores devueltos en EBX son 0x756e6547, EDX es 0x49656e69 y ECX es 0x6c65746e. El siguiente código de ejemplo muestra la cadena de identificación del proveedor, así como el parámetro de llamada más alto que implementa la CPU.

.intel_syntax sin prefijo .texto.m0: .string "CPUID: %x\n"  .m1: .string "Número de función básica más grande implementado: %i\n"  .m2: .string "ID del proveedor: %s\n"   .globl principal principal:Empujar r12 movimiento eax , 1  subtítulo rsp , 16   identificador de CPU Lea RDI , .m0 [ rip ]  movimiento esi , eax  llamar a printfmovimiento eax , 0   identificador de CPULea RDI , .m1 [ rip ]  movimiento esi , eax  movimiento r12d , edx  movimiento ebp , ecx  llamar a printf movimiento 3 [ rsp ], ebx  leer rsi , 3 [ rsp ]   Lea RDI , .m2 [ rip ]   movimiento 7 [ rsp ], r12d   mov 11 [ rsp ], ebp  llamar a printfañadir rsp , 16  estallido r12 retirado .sección .nota.GNU - pila , "" , @ progbits 

En algunos procesadores, es posible modificar la cadena de identificación del fabricante informada por CPUID.(EAX=0) escribiendo una nueva cadena de identificación en MSR ( registros específicos del modelo ) particulares mediante la WRMSRinstrucción. Esto se ha utilizado en procesadores que no son Intel para habilitar funciones y optimizaciones que se han deshabilitado en el software para CPU que no devuelven la GenuineIntelcadena de identificación. [19] Los procesadores que se sabe que poseen dichos MSR incluyen:

EAX=1: Información del procesador y bits de funciones

Esto devuelve la información de la versión , el modelo y la familia de la CPU en el registro EAX (también llamado la firma de una CPU), los indicadores de características en los registros EDX y ECX, y la información de características adicionales en el registro EBX. [27]

A partir de octubre de 2023, se conocen los siguientes identificadores de familia de procesadores x86: [29]

  1. ^ El procesador i386 no admite la CPUIDinstrucción; sin embargo, devuelve el ID de familia 3hen el valor de reinicio de EDX.
  2. ^ Se ha informado que se ha evitado deliberadamente el uso de Family ID para la familia de procesadores Pentium 4 debido a la incompatibilidad con Windows NT 4.0. [38]8h
  1. ^ En las CPU con más de 128 procesadores lógicos en un solo paquete (por ejemplo, Intel Xeon Phi 7290 [42] y AMD Threadripper Pro 7995WX [43] ), el valor en el bit 23:16 se establece en un valor que no es una potencia de 2.
  2. ^ El ID de APIC local también se puede identificar a través del cpuid leaf 0Bh ( CPUID.0Bh.EDX[x2APIC-ID] ). En las CPU con más de 256 procesadores lógicos en un paquete (por ejemplo, Xeon Phi 7290), se debe utilizar el leaf 0Bh porque el ID de APIC no cabe en 8 bits.

La información del procesador y las características son específicas del fabricante, pero generalmente los valores de Intel son utilizados por otros fabricantes por razones de compatibilidad.

  1. ^ En algunos procesadores más antiguos, la ejecución CPUIDcon un índice de hoja (EAX) mayor que 0 puede dejar EBX y ECX sin modificar, manteniendo sus valores anteriores. Por este motivo, se recomienda poner a cero EBX y ECX antes de ejecutar CPUIDcon un índice de hoja de 1.

    Entre los procesadores que presentan este comportamiento se incluyen Cyrix MII [45] e IDT WinChip 2. [46]

  2. ^ En los procesadores de IDT, Transmeta y Rise (identificadores de proveedor CentaurHauls, GenuineTMx86y RiseRiseRise), la CMPXCHG8Binstrucción siempre es compatible, sin embargo, el bit de característica para la instrucción podría no estar configurado. Esta es una solución temporal para un error en Windows NT. [47]
  3. ^ Solo en los primeros procesadores AMD K5 ( AuthenticAMDFamilia 5 Modelo 0), el bit 9 de EDX solía indicar compatibilidad con PGE. Esto se trasladó al bit 13 a partir del K5 Modelo 1 en adelante. [48]
  4. ^ Intel AP-485, revisiones 006 [49] a 008, enumera CPUID.(EAX=1):EDX[bit 10] como si tuviera el nombre "MTRR" (aunque se describe como "Reservado"/"No cuente con su valor") - este nombre fue eliminado en revisiones posteriores de AP-485, y el bit ha sido catalogado como reservado sin nombre desde entonces.
  5. ^ Solo en los procesadores Pentium Pro ( GenuineIntelFamilia 6 Modelo 1), el bit EDX 11 no es válido: el bit está configurado, pero las instrucciones SYSENTERy SYSEXITno son compatibles con Pentium Pro. [50]
  6. ^ FCMOV y FCOMIlas instrucciones solo están disponibles si también está presente la FPU x87 incorporada (indicada por el bit 0 de EDX).
  7. ^ El bit 16 de ECX aparece como "reservado" en la documentación pública de Intel y AMD y no está configurado en ningún procesador conocido. Sin embargo, se informa que algunas versiones del núcleo de Windows Vista comprueban este bit [51] ; si está configurado, Vista lo reconocerá como una característica de "canales de procesador".
  8. ^ En las CPU Intel y Transmeta [23] que admiten PSN (número de serie del procesador), el PSN se puede deshabilitar configurando el bit 21 de MSR 119h( BBL_CR_CTL) en 1. Al hacerlo, se eliminará la hoja 3 y hará que CPUID.(EAX=1):EDX[bit 18] devuelva 0.
  9. ^ En los procesadores x86 que no son Itanium, la compatibilidad con el bit de no ejecución se indica en CPUID.(EAX=8000_0001):EDX[bit 20] en su lugar.
  10. ^ El bit 28 de EDX, si está configurado, indica que los bits 23:16 de CPUID.(EAX=1):EBX son válidos. Si este bit no está configurado, el paquete de CPU contiene solo 1 procesador lógico.

    En documentación anterior, este bit a menudo se menciona como un indicador de " Tecnología Hyper-Threading " [55] ; sin embargo, si bien este indicador es un requisito previo para la compatibilidad con Hyper-Threading, no indica por sí mismo compatibilidad con Hyper-Threading y se ha configurado en muchas CPU que no cuentan con ningún tipo de tecnología multi-threading. [56]

Los campos reservados deben enmascararse antes de usarlos para fines de identificación del procesador.

EAX=2: información de descriptor de caché y TLB

Esto devuelve una lista de descriptores que indican las capacidades de caché y TLB en los registros EAX, EBX, ECX y EDX.

En los procesadores que admiten esta hoja, la llamada CPUIDcon EAX=2 hará que el byte inferior de EAX se establezca en 01h[a] y los 15 bytes restantes de EAX/EBX/ECX/EDX se llenen con 15 descriptores, un byte cada uno. Estos descriptores proporcionan información sobre las memorias caché, las TLB y la precarga del procesador. Normalmente se trata de una memoria caché o TLB por descriptor, pero algunos valores de descriptor también proporcionan otra información; en particular, 00hse utiliza para un descriptor vacío, FFhindica que la hoja no contiene información de memoria caché válida y que se debe utilizar la hoja 4h en su lugar, e FEhindica que la hoja no contiene información de TLB válida y que se debe utilizar la hoja 18h en su lugar. Los descriptores pueden aparecer en cualquier orden.

Para cada uno de los cuatro registros (EAX, EBX, ECX, EDX), si se establece el bit 31, entonces no se debe considerar que el registro contenga descriptores válidos (por ejemplo, en Itanium en modo IA-32, CPUID(EAX=2) retorna 80000000hen EDX - esto se debe interpretar como que EDX no contiene información válida, no que contiene un caché L2 de 512K).

La siguiente tabla proporciona, para valores de descriptor conocidos, una descripción condensada de la caché o TLB indicada por ese valor de descriptor (u otra información, cuando corresponda). Los sufijos utilizados en la tabla son:

  1. ^ En la documentación anterior de Intel, el byte inferior del valor devuelto en EAX se describe como la especificación de la cantidad de veces que se CPUIDdebe llamar a la función con EAX=2 para obtener todos los descriptores de caché/TLB. Sin embargo, todos los procesadores conocidos que implementan esta hoja devuelven 01heste byte, y la documentación más reciente de Intel (SDM rev 053 [60] y posteriores) especifica que este byte tiene el valor 01h.
  2. ^ abcdefghi Los descriptores 10h, 15h, 1Ah, 88h, 89h, 8Ah, 90h, 96h, 9Bhestán documentados únicamente para el modo de operación IA-32 de Itanium . [61]
  3. ^ abcd Los valores de descriptor 26h, 27h, 28hy 81hno están incluidos en la documentación de Intel y no se utilizan en ninguna CPU conocida, pero se ha informado que son reconocidos por el kernel de Windows NT v5.1 ( Windows XP ) y superiores. 81htambién es reconocido por v5.0 ( Windows 2000 ). [68]
  4. ^ Los descriptores abcdefg y se enumeran en la rev 36 de Intel AP-485, [62] pero se han eliminado de la documentación posterior de Intel a pesar de que algunos de ellos se han utilizado en CPU Intel (por ejemplo, en procesadores Celeron basados ​​en "Willamette-128" [63] ).39h-3Eh73h39h
  5. ^ El descriptor 49hindica un caché de nivel 3 en GenuineIntellas CPU de la familia 0Fh modelo 6 (Xeon basado en Pentium 4) y un caché de nivel 2 en otras CPU.
  6. ^ La documentación CPUID de Intel no especifica la asociatividad del ITLB indicado por descriptor 4Fh. Los procesadores que utilizan este descriptor (Intel Atom "Bonnell" [64] ) se enumeran en otros lugares como si tuvieran un ITLB de 32 entradas totalmente asociativo. [65]
  7. ^ ab En las CPU Cyrix y Geode (ID de proveedor CyrixInsteady Geode by NSC), los descriptores 70hy 80htienen un significado diferente: [66]
    • El descriptor 70hindica una TLB asociativa de conjunto de 4 vías con instrucciones+datos compartidos y 32 entradas con un tamaño de página de 4K.
    • El descriptor 80hindica un caché L1 de instrucciones+datos compartido de 16 KB con asociatividad de conjuntos de 4 vías y un tamaño de línea de caché de 16 bytes.
  8. ^ El descriptor 76haparece como un caché L2 de 1 MB en la rev 37 de Intel AP-485, [67] pero como una TLB de instrucciones en la rev 38 y en toda la documentación de Intel posterior.
  9. ^ Los descriptores abc , , están documentados únicamente para el modo de operación IA-32 de Itanium 2. [69]77h7Eh8Dh
  10. ^ En el modo de funcionamiento IA-32 de Itanium 2, el tamaño de la caché L3 siempre se informa como 3 MB, independientemente del tamaño real de la caché. [70]
  11. ^ Para el descriptor B1h, la capacidad de TLB es de 8 elementos cuando se utilizan páginas de 2 MB, pero se reduce a 4 elementos cuando se utilizan páginas de 4 MB.
  12. ^ ab La precarga especificada por los descriptores F0hy F1hes el paso recomendado para la precarga de memoria con la PREFETCHNTAinstrucción. [73]

EAX=3: Número de serie del procesador

Esto devuelve el número de serie del procesador. El número de serie del procesador se introdujo en Intel Pentium III , pero debido a cuestiones de privacidad, esta función ya no se implementa en los modelos posteriores (el bit de la función PSN siempre se borra). Los procesadores Efficeon y Crusoe de Transmeta también ofrecen esta función. Sin embargo, las CPU AMD no implementan esta función en ningún modelo de CPU.

En el caso de las CPU Intel Pentium III, el número de serie se devuelve en los registros EDX:ECX. En el caso de las CPU Transmeta Efficeon, se devuelve en los registros EBX:EAX. Y en el caso de las CPU Transmeta Crusoe, se devuelve únicamente en el registro EBX.

Tenga en cuenta que la función de número de serie del procesador debe estar habilitada en la configuración del BIOS para funcionar.


EAX=4 y EAX=8000001Dh: jerarquía y topología de caché

Estas dos hojas se utilizan para proporcionar información sobre los niveles de jerarquía de caché disponibles para el núcleo del procesador en el que CPUIDse ejecuta la instrucción. Leaf 4se utiliza en procesadores Intel y leaf 8000001Dhse utiliza en procesadores AMD: ambos devuelven datos en EAX, EBX, ECX y EDX, utilizando el mismo formato de datos excepto que leaf 4devuelve algunos campos adicionales que se consideran "reservados" para leaf 8000001Dh. Ambos proporcionan información de caché de CPU en una serie de subhojas seleccionadas por ECX: para obtener información sobre todos los niveles de caché, es necesario invocar CPUIDrepetidamente, con EAX= 4o 8000001Dhy ECX configurados en valores crecientes comenzando desde 0 (0,1,2,...) hasta que se encuentre una subhoja que no describa ninguna caché (EAX[4:0]=0). Las subhojas que devuelven información de caché pueden aparecer en cualquier orden, pero todas aparecerán antes de la primera subhoja que no describa ninguna caché.

En la siguiente tabla, los campos que están definidos para la hoja 4pero no para la hoja 8000001Dhestán resaltados con color de celda amarillo y un elemento (#4) .

  1. ^ ab Para la hoja 4 de CPUID, los bits 11:10 de EAX están documentados solo para el procesador Xeon Phi "Knights Corner" ( GenuineIntelFamilia 0Bh). [39] Para otros procesadores, se deben usar en su lugar los bits 1:0 de EDX.

Para cualquier caché que sea válido y no totalmente asociativo, el valor devuelto en ECX es la cantidad de conjuntos en el caché menos 1. (Para cachés totalmente asociativos, ECX debe tratarse como si devolviera el valor 0). Para cualquier caché dado descrito por una subhoja de CPUIDleaf 4o 8000001Dh, el tamaño total del caché en bytes se puede calcular como:
CacheSize = (EBX[11:0]+1) * (EBX[21:12]+1) * (EBX[31:22]+1) * (ECX+1)

EAX=4 y EAX=Bh: topología de caché y subprocesos/núcleos de Intel

Estas dos hojas se utilizan para la topología del procesador (subproceso, núcleo, paquete) y la enumeración de la jerarquía de caché en los procesadores multinúcleo (y con hiperproceso) de Intel. [74] A partir de 2013, AMD no utiliza estas hojas, pero tiene formas alternativas de realizar la enumeración de núcleos. [75]

A diferencia de la mayoría de las otras hojas CPUID, la hoja Bh devolverá diferentes valores en EDX dependiendo de qué procesador lógico ejecute la instrucción CPUID; el valor devuelto en EDX es en realidad el id x2APIC del procesador lógico. Sin embargo, el espacio de id x2APIC no se asigna continuamente a procesadores lógicos; puede haber brechas en la asignación, lo que significa que algunos id x2APIC intermedios no necesariamente corresponden a ningún procesador lógico. En los otros registros se proporciona información adicional para asignar los id x2APIC a núcleos. Aunque la hoja Bh tiene subhojas (seleccionadas por ECX como se describe más adelante), el valor devuelto en EDX solo se ve afectado por el procesador lógico en el que se ejecuta la instrucción, pero no por la subhoja.

La topología de procesadores expuesta por la hoja Bh es jerárquica, pero con la extraña salvedad de que el orden de los niveles (lógicos) en esta jerarquía no necesariamente corresponde al orden en la jerarquía física ( SMT /núcleo/paquete). Sin embargo, cada nivel lógico puede ser consultado como una subhoja ECX (de la hoja Bh) para su correspondencia con un "tipo de nivel", que puede ser SMT, núcleo o "inválido". El espacio de identificación de nivel comienza en 0 y es continuo, lo que significa que si una identificación de nivel es inválida, todas las identificaciones de nivel superior también lo serán. El tipo de nivel se devuelve en los bits 15:08 de ECX, mientras que la cantidad de procesadores lógicos en el nivel consultado se devuelve en EBX. Finalmente, la conexión entre estos niveles y las identificaciones de x2APIC se devuelve en EAX[4:0] como la cantidad de bits que la identificación de x2APIC debe desplazarse para obtener una identificación única en el siguiente nivel.

Como ejemplo, un procesador Westmere de doble núcleo capaz de realizar hyperthreading (y, por lo tanto, tener dos núcleos y cuatro subprocesos en total) podría tener los identificadores x2APIC 0, 1, 4 y 5 para sus cuatro procesadores lógicos. La hoja Bh (=EAX), subhoja 0 (=ECX) de CPUID podría, por ejemplo, devolver 100h en ECX, lo que significa que el nivel 0 describe la capa SMT (hyperthreading), y devolver 2 en EBX porque hay dos procesadores lógicos (unidades SMT) por núcleo físico. El valor devuelto en EAX para esta subhoja 0 debería ser 1 en este caso, porque desplazar los identificadores x2APIC antes mencionados a la derecha en un bit proporciona un número de núcleo único (en el siguiente nivel de la jerarquía de identificadores de nivel) y borra el bit de identificador SMT dentro de cada núcleo. Una forma más sencilla de interpretar esta información es que el último bit (bit número 0) del id de x2APIC identifica la unidad SMT/hyperthreading dentro de cada núcleo en nuestro ejemplo. Avanzar a la subhoja 1 (haciendo otra llamada a CPUID con EAX=Bh y ECX=1) podría, por ejemplo, devolver 201h en ECX, lo que significa que este es un nivel de tipo de núcleo, y 4 en EBX porque hay 4 procesadores lógicos en el paquete; EAX devuelto podría ser cualquier valor mayor que 3, porque resulta que el bit número 2 se utiliza para identificar el núcleo en el id de x2APIC. Tenga en cuenta que el bit número 1 del id de x2APIC no se utiliza en este ejemplo. Sin embargo, EAX devuelto en este nivel bien podría ser 4 (y resulta ser así en un Clarkdale Core i3 5x0) porque eso también proporciona un id único en el nivel de paquete (=0 obviamente) al cambiar el id de x2APIC por 4 bits. Por último, puede que te preguntes qué nos puede decir la hoja EAX=4 que no hayamos descubierto ya. En EAX[31:26] devuelve los bits de máscara APIC reservados para un paquete; en nuestro ejemplo, serían 111b porque los bits 0 a 2 se utilizan para identificar procesadores lógicos dentro de este paquete, pero el bit 1 también está reservado, aunque no se utiliza como parte del esquema de identificación de procesadores lógicos. En otras palabras, los identificadores APIC 0 a 7 están reservados para el paquete, aunque la mitad de estos valores no se asignan a un procesador lógico.

La jerarquía de caché del procesador se explora observando las subhojas de la hoja 4. Los identificadores APIC también se utilizan en esta jerarquía para transmitir información sobre cómo los diferentes niveles de caché son compartidos por las unidades SMT y los núcleos. Para continuar con nuestro ejemplo, la caché L2, que es compartida por las unidades SMT del mismo núcleo pero no entre núcleos físicos en Westmere, se indica mediante EAX[26:14] establecido en 1, mientras que la información de que la caché L3 es compartida por todo el paquete se indica estableciendo esos bits en (al menos) 111b. Los detalles de la caché, incluidos el tipo de caché, el tamaño y la asociatividad, se comunican a través de los otros registros en la hoja 4.

Tenga en cuenta que las versiones anteriores de la nota de aplicación 485 de Intel contienen información engañosa, en particular con respecto a la identificación y el recuento de núcleos en un procesador multinúcleo; [76] incluso se han incorporado errores por malinterpretar esta información en el código de muestra de Microsoft para usar CPUID, incluso para la edición 2013 de Visual Studio, [77] y también en la página sandpile.org para CPUID, [78] pero el ejemplo de código de Intel para identificar la topología del procesador [74] tiene la interpretación correcta, y el Manual del desarrollador de software de Intel actual tiene un lenguaje más claro. El código de producción multiplataforma (de código abierto) [79] de Wildfire Games también implementa la interpretación correcta de la documentación de Intel.

En una presentación de Intel de 2010 se ofrecen ejemplos de detección de topología que involucran procesadores Intel más antiguos (anteriores a 2010) que carecen de x2APIC (y, por lo tanto, no implementan la hoja EAX=Bh). [80] Tenga en cuenta que el uso de ese método de detección más antiguo en procesadores Intel de 2010 y más nuevos puede sobreestimar la cantidad de núcleos y procesadores lógicos porque el método de detección antiguo supone que no hay espacios en el espacio de identificación de APIC, y esta suposición es violada por algunos procesadores más nuevos (comenzando con la serie Core i3 5x0), pero estos procesadores más nuevos también vienen con un x2APIC, por lo que su topología se puede determinar correctamente utilizando el método de hoja EAX=Bh.

EAX=5: Funciones MONITOR/MWAIT

Esto devuelve información de funciones relacionada con las instrucciones MONITORy MWAITen los registros EAX, EBX, ECX y EDX.

  1. ^ Los estados C0 a C7 son estados C específicos del procesador, que no necesariamente corresponden 1:1 a los estados C ACPI .

EAX=6: Gestión térmica y energética

Esto devuelve bits de características en el registro EAX e información adicional en los registros EBX, ECX y EDX.

  1. ^ Solo en los procesadores de la familia Intel Pentium 4, el bit 2 de EAX se utiliza para indicar OPP (protección del punto operativo) [82] en lugar de ARAT.
  2. ^ Para habilitar el modo de acceso rápido (sin serialización) para el IA32_HWP_REQUESTMSR en las CPU que lo admiten, es necesario establecer el bit 0 del FAST_UNCORE_MSRS_CTL( 657h) MSR.
  1. ^ El bit "ACNT2 Capability" aparece en Intel AP-485 rev 038 [84] y 039, pero no aparece en ninguna revisión de Intel SDM. Se sabe que la característica existe solo en algunas CPU Intel, por ejemplo, Xeon "Harpertown" con versión E0. [85]

EAX=7, ECX=0: Funciones extendidas

Esto devuelve indicadores de funciones extendidas en EBX, ECX y EDX. Devuelve el valor ECX máximo para EAX=7 en EAX.

  1. ^ abc A partir de abril de 2024, los bits FZM, MPRR y SGX_TEM solo aparecen en la documentación de Intel TDX [87] y no están configurados en ningún procesador conocido.

EAX=7, ECX=1: Funciones extendidas

Esto devuelve indicadores de funciones extendidas en los cuatro registros.

  1. ^ A partir de abril de 2024, el bit DEDUP solo aparece en la documentación de Intel TDX [87] y no está configurado en ningún procesador conocido.
  2. ^ El soporte para la MWAITinstrucción puede indicarse mediante CPUID.(EAX=1).ECX[3] o CPUID.(EAX=7,ECX=1).EDX[23]. (Se pueden configurar uno o ambos). El primero MONITORtambién indica soporte para la instrucción, mientras que el último no indica de una forma u otra si la MONITORinstrucción está presente. MWAITwithout MONITORpuede estar presente en sistemas que admiten la característica "Monitorless MWAIT" (que se indica mediante CPUID.(EAX=5).ECX[3] ).

EAX=7, ECX=2: Funciones extendidas

Esto devuelve indicadores de funciones extendidas en EDX.

EAX, EBX y ECX están reservados.

EAX=0Dh: características y componentes de estado de XSAVE

Esta hoja se utiliza para enumerar las características y los componentes de estado de XSAVE.

La extensión del conjunto de instrucciones XSAVE está diseñada para guardar/restaurar el estado extendido de la CPU (normalmente con el fin de cambiar de contexto ) de una manera que se pueda ampliar para cubrir nuevas extensiones del conjunto de instrucciones sin que el código de cambio de contexto del SO necesite comprender los detalles de las nuevas extensiones. Esto se hace definiendo una serie de componentes de estado , cada uno con un tamaño y un desplazamiento dentro de un área de almacenamiento determinada, y cada uno correspondiente a un subconjunto del estado necesario para una extensión de CPU u otra. La EAX=0Dhhoja CPUID se utiliza para proporcionar información sobre qué componentes de estado admite la CPU y cuáles son sus tamaños/desplazamientos, de modo que el SO pueda reservar la cantidad adecuada de espacio y establecer los bits de habilitación asociados.

Los componentes de estado se pueden subdividir en dos grupos: estado de usuario (elementos de estado que son visibles para la aplicación, por ejemplo, registros vectoriales AVX-512 ) y estado de supervisor (elementos de estado que afectan a la aplicación pero no son directamente visibles para el usuario, por ejemplo, configuración de interrupción del modo usuario). Los elementos de estado de usuario se habilitan configurando sus bits asociados en el XCR0registro de control, mientras que los elementos de estado de supervisor se habilitan configurando sus bits asociados en el MSR IA32_XSS( 0DA0h) - los elementos de estado indicados se convierten entonces en los componentes de estado que se pueden guardar y restaurar con la familia de instrucciones XSAVE/ XRSTOR.

El mecanismo XSAVE puede manejar hasta 63 componentes de estado de esta manera. Los componentes de estado 0 y 1 ( x87 y SSE , respectivamente) tienen desplazamientos y tamaños fijos; para los componentes de estado 2 a 62, se pueden consultar sus tamaños, desplazamientos y algunos indicadores adicionales ejecutando CPUIDcon EAX=0Dhy ECXestableciendo el índice del componente de estado. Esto devolverá los siguientes elementos en EAX, EBX y ECX (con EDX reservado):

Intentar consultar un componente de estado no compatible de esta manera da como resultado que EAX, EBX, ECX y EDX se establezcan en 0.

Las subhojas 0 y 1 de CPUIDla hoja 0Dhse utilizan para proporcionar información sobre las características:

A partir de julio de 2023, los componentes de estado XSAVE que se han definido arquitectónicamente son:

  1. ^ El bit 0 XCR0está cableado a 1, de modo que las instrucciones XSAVE siempre admitirán guardar/restaurar el estado x87.
  2. ^ Para los registros XCR0y IA32_XSS, el bit 63 está reservado específicamente para la expansión del vector de bits: esto impide la existencia de un componente de estado 63.

EAX=12h: capacidades SGX

This leaf provides information about the supported capabilities of the Intel Software Guard Extensions (SGX) feature. The leaf provides multiple sub-leaves, selected with ECX.

Sub-leaf 0 provides information about supported SGX leaf functions in EAX and maximum supported SGX enclave sizes in EDX; ECX is reserved. EBX provides a bitmap of bits that can be set in the MISCSELECT field in the SECS (SGX Enclave Control Structure) - this field is used to control information written to the MISC region of the SSA (SGX Save State Area) when an AEX (SGX Asynchronous Enclave Exit) occurs.

Sub-leaf 1 provides a bitmap of which bits can be set in the 128-bit ATTRIBUTES field of SECS in EDX:ECX:EBX:EAX (this applies to the SECS copy used as input to the ENCLS[ECREATE] leaf function). The top 64 bits (given in EDX:ECX) are a bitmap of which bits can be set in the XFRM (X-feature request mask) - this mask is a bitmask of which CPU state-components (see leaf 0Dh) will be saved to the SSA in case of an AEX; this has the same layout as the XCR0 control register. The other bits are given in EAX and EBX, as follows:

  1. ^ For the copy of the SECS that exists inside an exclave, bit 0 (INIT) of SECS.ATTRIBUTES is used to indicate that the enclave has been initialized with ENCLS[EINIT]. This bit must be 0 in the SECS copy that is given as input to ENCLS[CREATE].

Sub-leaves 2 and up are used to provide information about which physical memory regions are available for use as EPC (Enclave Page Cache) sections under SGX.

EAX=14h, ECX=0: Processor Trace

This sub-leaf provides feature information for Intel Processor Trace (also known as Real Time Instruction Trace).

The value returned in EAX is the index of the highest sub-leaf supported for CPUID with EAX=14h. EBX and ECX provide feature flags, EDX is reserved.

EAX=15h and EAX=16h: CPU, TSC, Bus and Core Crystal Clock frequencies

These two leaves provide information about various frequencies in the CPU in EAX, EBX and ECX (EDX is reserved in both leaves).

  1. ^ a b c d e Field not enumerated if zero.
  2. ^ The frequency values reported by leaf 16h are the processor's specification frequencies - they are constant for the given processor and do not necessarily reflect the actual CPU clock speed at the time CPUID is called.

If the returned values in EBX and ECX of leaf 15h are both nonzero, then the TSC (Time Stamp Counter) frequency in Hz is given by TSCFreq = ECX*(EBX/EAX).

On some processors (e.g. Intel Skylake), CPUID_15h_ECX is zero but CPUID_16h_EAX is present and not zero. On all known processors where this is the case,[100] the TSC frequency is equal to the Processor Base Frequency, and the Core Crystal Clock Frequency in Hz can be computed as CoreCrystalFreq = (CPUID_16h_EAX * 10000000) * (CPUID_15h_EAX/CPUID_15h_EBX).

On processors that enumerate the TSC/Core Crystal Clock ratio in CPUID leaf 15h, the APIC timer frequency will be the Core Crystal Clock frequency divided by the divisor specified by the APIC's Divide Configuration Register.[101]

EAX=17h: SoC Vendor Attribute Enumeration

This leaf is present in systems where an x86 CPU IP core is implemented in an SoC (System on chip) from another vendor - whereas the other leaves of CPUID provide information about the x86 CPU core, this leaf provides information about the SoC. This leaf takes a sub-leaf index in ECX.

Sub-leaf 0 returns a maximum sub-leaf index in EAX (at least 3), and SoC identification information in EBX/ECX/EDX:

  1. ^ As of May 2024, the following Vendor IDs are known to have been assigned by Intel:
  2. ^ As of May 2024, Intel documentation does not specify which "Industry Standard" enumeration scheme to use for the Vendor ID in EBX[15:0] if EBX[16] is set.

Sub-leaves 1 to 3 return a 48-byte SoC vendor brand string in UTF-8 format. Sub-leaf 1 returns the first 16 bytes in EAX,EBX,ECX,EDX (in that order); sub-leaf 2 returns the next 16 bytes and sub-leaf 3 returns the last 16 bytes. The string is allowed but not required to be null-terminated.

EAX=19h: Intel Key Locker features

This leaf provides feature information for Intel Key Locker in EAX, EBX and ECX. EDX is reserved.

  1. ^ As of April 2024, the "Process Restriction" bit is listed only in Intel TDX documentation[87] and is not set in any known processor.

EAX=21h: Reserved for TDX enumeration

When Intel TDX (Trust Domain Extensions) is active, attempts to execute the CPUID instruction by a TD (Trust Domain) guest will be intercepted by the TDX module. This module will, when CPUID is invoked with EAX=21h and ECX=0 (leaf 21h, sub-leaf 0), return the index of the highest supported sub-leaf for leaf 21h in EAX and a TDX module vendor ID string as a 12-byte ASCII string in EBX,EDX,ECX (in that order). Intel's own module implementation returns the vendor ID string "IntelTDX    " (with four trailing spaces)[103] - for this module, additional feature information is not available through CPUID and must instead be obtained through the TDX-specific TDCALL instruction.

This leaf is reserved in hardware and will (on processors whose highest basic leaf is 21h or higher) return 0 in EAX/EBX/ECX/EDX when run directly on the CPU.

EAX=24h, ECX=0: "AVX10 Converged Vector ISA Leaf"

This returns a maximum supported sub-leaf in EAX and AVX10 feature information in EBX.[95] (ECX and EDX are reserved.)

EAX=24h, ECX=1: Discrete AVX10 Features

Subleaf 1 is reserved for AVX10 features not bound to a version. None are currently defined.

EAX=40000000h-4FFFFFFFh: Reserved for Hypervisor use

When the CPUID instruction is executed under Intel VT-x or AMD-v virtualization, it will be intercepted by the hypervisor, enabling the hypervisor to return CPUID feature flags that differ from those of the underlying hardware. CPUID leaves 40000000h to 4FFFFFFFh are not implemented in hardware, and are reserved for use by hypervisors to provide hypervisor-specific identification and feature information through this interception mechanism.

For leaf 40000000h, the hypervisor is expected to return the index of the highest supported hypervisor CPUID leaf in EAX, and a 12-character hypervisor ID string in EBX,ECX,EDX (in that order). For leaf 40000001h, the hypervisor may return an interface identification signature in EAX - e.g. hypervisors that wish to advertise that they are Hyper-V compatible may return 0x31237648“Hv#1” in EAX.[104][105] The formats of leaves 40000001h and up to the highest supported leaf are otherwise hypervisor-specific. Hypervisors that implement these leaves will normally also set bit 31 of ECX for CPUID leaf 1 to indicate their presence.

Hypervisors that expose more than one hypervisor interface may provide additional sets of CPUID leaves for the additional interfaces, at a spacing of 100h leaves per interface. For example, when QEMU is configured to provide both Hyper-V and KVM interfaces, it will provide Hyper-V information starting from CPUID leaf 40000000h and KVM information starting from leaf 40000100h.[106][107]

Some hypervisors that are known to return a hypervisor ID string in leaf 40000000h include:

EAX=80000000h: Get Highest Extended Function Implemented

The highest calling parameter is returned in EAX.

EBX/ECX/EDX return the manufacturer ID string (same as EAX=0) on AMD but not Intel CPUs.

EAX=80000001h: Extended Processor Info and Feature Bits

This returns extended feature flags in EDX and ECX.

Many of the bits in EDX (bits 0 through 9, 12 through 17, 23, and 24) are duplicates of EDX from the EAX=1 leaf - these bits are highlighted in light yellow. (These duplicated bits are present on AMD but not Intel CPUs.)

AMD feature flags are as follows:[126][127]

  1. ^ Bit 16 originally denoted 128-bit vector support, but version 3.0 of the AVX10.1 specification removed such a possibility.
  2. ^ The use of EDX bit 10 to indicate support for SYSCALL/SYSRET is only valid on AuthenticAMD Family 5 Model 7 CPUs (AMD K6, 250nm "Little Foot") - for all other processors, EDX bit 11 should be used instead.

    These instructions were first introduced on Model 7[128] - the CPUID bit to indicate their support was moved[129] to EDX bit 11 from Model 8 (AMD K6-2) onwards.

  3. ^ On Intel CPUs, the CPUID bit for SYSCALL/SYSRET is only set if the CPUID instruction is executed in 64-bit mode.[130]
  4. ^ a b On some processors - Cyrix MediaGXm,[132] several Geodes (NatSemi Geode GXm, GXLV, GX1; AMD Geode GX1[133]) and Transmeta Crusoe[134] - EDX bits 16 and 24 have a different meaning:
    • Bit 16: Floating-point Conditional Move (FCMOV) supported
    • Bit 24: 6x86MX Extended MMX instructions supported
  5. ^ EDX bit 19 is used for CPU brand identification on AuthenticAMD Family 6 processors only - the bit is, combined with processor signature and FSB speed, used to identify processors as either multiprocessor-capable or carrying the Sempron brand name.[135]
  6. ^ ECX bit 25 is listed as StreamPerfMon in revision 3.20 of AMD APM[137] only - it is listed as reserved in later revisions. The bit is set on Excavator and Steamroller CPUs only.

EAX=80000002h,80000003h,80000004h: Processor Brand String

These return the processor brand string in EAX, EBX, ECX and EDX. CPUID must be issued with each parameter in sequence to get the entire 48-byte ASCII processor brand string.[138] It is necessary to check whether the feature is present in the CPU by issuing CPUID with EAX = 80000000h first and checking if the returned value is not less than 80000004h.

The string is specified in Intel/AMD documentation to be null-terminated, however this is not always the case (e.g. DM&P Vortex86DX3 and AMD Ryzen 7 6800HS are known to return non-null-terminated brand strings in leaves 80000002h-80000004h[139][140]), and software should not rely on it.

#include <stdio.h>#include <string.h>#include <cpuid.h>int main(){ unsigned int regs[12]; char str[sizeof(regs)+1]; __cpuid(0x80000000, regs[0], regs[1], regs[2], regs[3]); if (regs[0] < 0x80000004) return 1; __cpuid(0x80000002, regs[0], regs[1], regs[2], regs[3]); __cpuid(0x80000003, regs[4], regs[5], regs[6], regs[7]); __cpuid(0x80000004, regs[8], regs[9], regs[10], regs[11]); memcpy(str, regs, sizeof(regs)); str[sizeof(regs)] = '\0'; printf("%s\n", str); return 0;}

On AMD processors, from 180nm Athlon onwards (AuthenticAMD Family 6 Model 2 and later), it is possible to modify the processor brand string returned by CPUID leaves 80000002h-80000004h by using the WRMSR instruction to write a 48-byte replacement string to MSRs C0010030h-C0010035h.[135][141] This can also be done on AMD Geode GX/LX, albeit using MSRs 300Ah-300Fh.[142]

In some cases, determining the CPU vendor requires examining not just the Vendor ID in CPUID leaf 0 and the CPU signature in leaf 1, but also the Processor Brand String in leaves 80000002h-80000004h. Known cases include:

EAX=80000005h: L1 Cache and TLB Identifiers

This provides information about the processor's level-1 cache and TLB characteristics in EAX, EBX, ECX and EDX as follows:[a]

  1. ^ On some older Cyrix and Geode CPUs (specifically, CyrixInstead/Geode by NSC Family 5 Model 4 CPUs only), leaf 80000005h exists but has a completely different format, similar to that of leaf 2.[147]
  2. ^ On processors that can only handle small-pages in their TLBs, this leaf will return 0 in EAX. (On such processors, which include e.g. AMD K6 and Transmeta Crusoe, hugepage entries in the page-tables are broken up into 4K pages as needed upon entry into the TLB.)
    On some processors, e.g. VIA Cyrix III "Samuel",[148] this leaf returns 0x80000005 in EAX. This has the same meaning as EAX=0, i.e. no hugepage TLBs.
  3. ^ a b On Transmeta CPUs, the value FFh is used to indicate a 256-entry TLB.
  4. ^ a b c For the associativity fields of leaf 80000005h, the following values are used:

EAX=80000006h: Extended L2 Cache Features

Returns details of the L2 cache in ECX, including the line size in bytes (Bits 07 - 00), type of associativity (encoded by a 4 bits field; Bits 15 - 12) and the cache size in KB (Bits 31 - 16).

#include <stdio.h>#include <cpuid.h>int main(){ unsigned int eax, ebx, ecx, edx; unsigned int lsize, assoc, cache; __cpuid(0x80000006, eax, ebx, ecx, edx);  lsize = ecx & 0xff; assoc = (ecx >> 12) & 0x07; cache = (ecx >> 16) & 0xffff; printf("Line size: %d B, Assoc. type: %d, Cache size: %d KB.\n", lsize, assoc, cache); return 0;}

EAX=80000007h: Processor Power Management Information and RAS Capabilities

This function provides information about power management, power reporting and RAS (Reliability, availability and serviceability) capabilities of the CPU.

EAX=80000008h: Virtual and Physical address Sizes

  1. ^ The LMSLE (Long Mode Segment Limit Enable) feature does not have its own CPUID flag and is detected by checking CPU family and model. It was introduced in AuthenticAMD Family 0Fh Model 14h[152] (90nm Athlon64/Opteron) CPUs and is present in all later AMD CPUs - except the ones with the 'no_efer_lmsle' flag set.
  2. ^ A value of 0 indicates that the "Guest Physical Address Size" is the same as the "Number Of Physical Address Bits", specified in EAX[7:0].

EAX=8000000Ah: Secure Virtual Machine features

This leaf returns information about AMD SVM (Secure Virtual Machine) features in EAX, EBX and EDX.

  1. ^ Early revisions of AMD's "Pacifica" documentation listed EAX bit 8 as an always-zero bit reserved for hypervisor use.[154]

    Later AMD documentation, such as #25481 "CPUID specification" rev 2.18[155] and later, only lists the bit as reserved.

    In rev 2.30[156] and later, a different bit is listed as reserved for hypervisor use: CPUID.(EAX=1):ECX[bit 31].

  2. ^ EDX bit 9 is briefly listed in some older revisions of AMD's document #25481 "CPUID Specification", and is set only in some AMD Bobcat CPUs.[157]

    Rev 2.28 of #25481 lists the bit as "Ssse3Sse5Dis"[158] - in rev 2.34, it is listed as having been removed from the spec at rev 2.32 under the name "SseIsa10Compat".[159]

EAX=8000001Fh: Encrypted Memory Capabilities

EAX=80000021h: Extended Feature Identification 2

EAX=8FFFFFFFh: AMD Easter Egg

Several AMD CPU models will, for CPUID with EAX=8FFFFFFFh, return an Easter Egg string in EAX, EBX, ECX and EDX.[164][165] Known Easter Egg strings include:

EAX=C0000000h: Get Highest Centaur Extended Function

Returns index of highest Centaur leaf in EAX. If the returned value in EAX is less than C0000001h, then Centaur extended leaves are not supported.

Present in CPUs from VIA and Zhaoxin.

On IDT WinChip CPUs (CentaurHauls Family 5), the extended leaves C0000001h-C0000005h do not encode any Centaur-specific functionality but are instead aliases of leaves 80000001h-80000005h.[167]

EAX=C0000001h: Centaur Feature Information

This leaf returns Centaur feature information (mainly VIA PadLock) in EDX.[168][169] (EAX, EBX and ECX are reserved.)

  1. ^ a b c d On VIA Nehemiah and Antaur CPUs (CentaurHauls Family 6 Model 9 only),[170] bits 0,1,4,5 are used differently:

CPUID usage from high-level languages

Inline assembly

This information is easy to access from other languages as well. For instance, the C code for gcc below prints the first five values, returned by the cpuid:

#include <stdio.h>#include <cpuid.h>int main(){ unsigned int i, eax, ebx, ecx, edx; for (i = 0; i < 5; i++) { __cpuid(i, eax, ebx, ecx, edx); printf ("InfoType %x\nEAX: %x\nEBX: %x\nECX: %x\nEDX: %x\n", i, eax, ebx, ecx, edx); } return 0;}

In MSVC and Borland/Embarcadero C compilers (bcc32) flavored inline assembly, the clobbering information is implicit in the instructions:

#include <stdio.h>int main(){ unsigned int a, b, c, d, i = 0; __asm { /* Do the call. */ mov EAX, i; cpuid; /* Save results. */ mov a, EAX; mov b, EBX; mov c, ECX; mov d, EDX; } printf ("InfoType %x\nEAX: %x\nEBX: %x\nECX: %x\nEDX: %x\n", i, a, b, c, d); return 0;}

If either version was written in plain assembly language, the programmer must manually save the results of EAX, EBX, ECX, and EDX elsewhere if they want to keep using the values.

Wrapper functions

GCC also provides a header called <cpuid.h> on systems that have CPUID. The __cpuid is a macro expanding to inline assembly. Typical usage would be:

#include <stdio.h>#include <cpuid.h>int main(){ unsigned int eax, ebx, ecx, edx; __cpuid(0 /* vendor string */, eax, ebx, ecx, edx); printf("EAX: %x\nEBX: %x\nECX: %x\nEDX: %x\n", eax, ebx, ecx, edx); return 0;}

But if one requested an extended feature not present on this CPU, they would not notice and might get random, unexpected results. Safer version is also provided in <cpuid.h>. It checks for extended features and does some more safety checks. The output values are not passed using reference-like macro parameters, but more conventional pointers.

#include <stdio.h>#include <cpuid.h>int main(){ unsigned int eax, ebx, ecx, edx; /* 0x81234567 is nonexistent, but assume it exists */ if (!__get_cpuid (0x81234567, &eax, &ebx, &ecx, &edx)) { printf("Warning: CPUID request 0x81234567 not valid!\n"); return 1; } printf("EAX: %x\nEBX: %x\nECX: %x\nEDX: %x\n", eax, ebx, ecx, edx); return 0;}

Notice the ampersands in &a, &b, &c, &d and the conditional statement. If the __get_cpuid call receives a correct request, it will return a non-zero value, if it fails, zero.[171]

Microsoft Visual C compiler has builtin function __cpuid() so the cpuid instruction may be embedded without using inline assembly, which is handy since the x86-64 version of MSVC does not allow inline assembly at all. The same program for MSVC would be:

#include <stdio.h>#ifdef __MSVC__ #include <intrin.h>#endifint main(){ unsigned int regs[4]; int i; for (i = 0; i < 4; i++) { __cpuid(regs, i); printf("The code %d gives %d, %d, %d, %d", regs[0], regs[1], regs[2], regs[3]); } return 0;}

Many interpreted or compiled scripting languages are capable of using CPUID via an FFI library. One such implementation shows usage of the Ruby FFI module to execute assembly language that includes the CPUID opcode.

.NET 5 and later versions provide the System.Runtime.Intrinsics.X86.X86base.CpuId method. For instance, the C# code below prints the processor brand if it supports CPUID instruction:

using System.Runtime.InteropServices;using System.Runtime.Intrinsics.X86;using System.Text;namespace X86CPUID { class CPUBrandString { public static void Main(string[] args) { if (!X86Base.IsSupported) { Console.WriteLine("Your CPU does not support CPUID instruction."); } else { Span<int> raw = stackalloc int[12]; (raw[0], raw[1], raw[2], raw[3]) = X86Base.CpuId(unchecked((int)0x80000002), 0); (raw[4], raw[5], raw[6], raw[7]) = X86Base.CpuId(unchecked((int)0x80000003), 0); (raw[8], raw[9], raw[10], raw[11]) = X86Base.CpuId(unchecked((int)0x80000004), 0); Span<byte> bytes = MemoryMarshal.AsBytes(raw); string brand = Encoding.UTF8.GetString(bytes).Trim(); Console.WriteLine(brand); } } }}

CPU-specific information outside x86

Some of the non-x86 CPU architectures also provide certain forms of structured information about the processor's abilities, commonly as a set of special registers:

DSP and transputer-like chip families have not taken up the instruction in any noticeable way, in spite of having (in relative terms) as many variations in design. Alternate ways of silicon identification might be present; for example, DSPs from Texas Instruments contain a memory-based register set for each functional unit that starts with identifiers determining the unit type and model, its ASIC design revision and features selected at the design phase, and continues with unit-specific control and data registers. Access to these areas is performed by simply using the existing load and store instructions; thus, for such devices, there is no need for extending the register set for device identification purposes.[citation needed]

See also

References

  1. ^ "Intel 64 and IA-32 Architectures Software Developer's Manual" (PDF). Intel.com. Retrieved 2013-04-11.
  2. ^ "Detecting Intel Processors - Knowing the generation of a system CPU". Rcollins.org. Retrieved 2013-04-11.
  3. ^ "LXR linux-old/arch/i386/kernel/head.S". Lxr.linux.no. Archived from the original on 2012-07-13. Retrieved 2013-04-11.
  4. ^ a b c Debbie Wiles, CPU Identification, archived on 2006-06-04
  5. ^ B-CoolWare, TMi0SDGL x86 CPU/FPU detection library with source code, v2.15, June 2000 - see /SOURCE/REALCODE.ASM for a large collection of pre-CPUID x86 CPU detection routines. Archived on 14 Mar 2023.
  6. ^ "CPUID, EAX=4 - Strange results (Solved)". Software.intel.com. Retrieved 2014-07-10.
  7. ^ @InstLatX64 (February 28, 2019). "First encounter with "GenuineIotel" (o after I, instead of n)" (Tweet) – via Twitter.
  8. ^ "GenuineIotel CPUID dump for Intel Xeon E3-1231". instlatx64.
  9. ^ instlatx64, CPUID dump for RDC IAD 100. Retrieved 22 December 2022.
  10. ^ a b c d smxi, Inxi issue 197: Elbrus CPU support data and implementation. Retrieved 23 October 2023. Archived on 23 October 2023.
  11. ^ Grzegorz Mazur, Identification of x86 CPUs with CPUID support, 5 May 1997. Archived from the original on 24 May 1997.
  12. ^ Ingo Böttcher, CPUDET.PAS v1.61, 23 Oct 1996 - CPU identification program that tests for "AMD ISBETTER" string. Archived on 26 Apr 2024.
  13. ^ sorgelig (Aug 3, 2017). "ao486 CPUID instruction (in commit 43a2004)". GitHub. Archived from the original on 2023-12-04. Retrieved 2023-12-04.
  14. ^ a b sorgelig (Aug 30, 2020). "Update cpuid. · MiSTer-devel/ao486_MiSTer@82f5014". GitHub. Archived from the original on 2023-12-04. Retrieved 2023-12-04.
  15. ^ sorgelig (Aug 30, 2020). "ao486 CPUID instruction". GitHub. Archived from the original on October 23, 2023. Retrieved 4 Dec 2023.
  16. ^ "v586: 586 compatible soft core for FPGA". GitHub. 6 December 2021.
  17. ^ "Steam Hardware & Software Survey". store.steampowered.com. Retrieved 2022-07-26.
  18. ^ "Fun with Timers and cpuid - by Jim Cownie - CPU fun". 3 March 2021.
  19. ^ iXBT Labs, VIA Nano CPUID Tricks, Aug 26, 2010. Archived on Aug 29, 2010.
  20. ^ IDT, WinChip 2A data sheet, v1.0, Jan 1999, page A-3.
  21. ^ VIA, C3 Nehemiah Datasheet, rev 1.13, Sep 29, 2004, page A-3.
  22. ^ Agner Fog, CpuIDFake, v1.00, Jan 22, 2010, see "Instructions.txt". Archived on Jul 9, 2010.
  23. ^ a b Transmeta, Crusoe BIOS Programmer's Guide, Jan 23, 2004, pages 63-65.
  24. ^ Transmeta, Efficeon BIOS Programmers Guide, Aug 19, 2003, section 8.3, page 148.
  25. ^ AMD, Geode LX Data Book, pub.id. 33234H, Feb. 2009, page 107. Archived on Dec 3, 2023.
  26. ^ DM&P, Vortex86EX2_A9133_Master_Data_Sheet_V11_BF, May 8, 2019, page 72.
  27. ^ "Chapter 3 Instruction Set Reference, A-L" (PDF). Intel 64 and IA-32 Architectures Software Developer's Manual. Intel Corporation. 2018-12-20. Retrieved 2018-12-20.
  28. ^ Intel, Pentium Processor Family Developer's Manual, 1997, order no. 241428-005, sections 3.4.1.2 (page 91), 17.5.1 (page 489) and appendix A (page 522) provide more detail on how the "processor type" field and the "dual processor" designation work.
  29. ^ InstLatx64, x86, x64 Instruction Latency, Memory Latency and CPUID dumps, 30 Sep 2023.
  30. ^ AMD, Enhanced Am486DX Microprocessor Family, pub.no. 20736 rev B, March 1997, section 9.2.2, page 55. Archived on 18 Oct 2023.
  31. ^ AMD, ÉlanSC400 and ÉlanSC410 Microcontrollers User's Manual, pub.no. 21030, 1997, section 3.6.2, page 73. Archived on 18 Oct 2023.
  32. ^ Cyrix, 5x86 BIOS Writers Guide, rev 1.12, order no. 92426-00, 1995, page 7
  33. ^ a b Cyrix, CPU Detection Guide, rev 1.01, 2 Oct 1997, page 6.
  34. ^ MiSTer ao486 source code, rtl/ao486/defines.v, line 70. Archived on 23 Oct 2023.
  35. ^ CPU-World, CPUID for Vortex86DX2 933 MHz. Archived on 17 Oct 2023.
  36. ^ CPU-World, CPUID for Vortex86EX2. Archived on 18 Oct 2023.
  37. ^ InstLatx64, Centaur CNS CPUID dump. Archived on 30 May 2023.
  38. ^ Jeff Atwood, Nasty Software Hacks and Intel's CPUID. Coding Horror, 16 Aug 2005.
  39. ^ a b Intel, Intel Xeon Phi Coprocessor Instruction Set Architecture Reference Manual, sep 2012, order no. 327364-001, appendix B.8, pages 673-674. Archived on 4 Aug 2021.
  40. ^ CPU-World, CPUID for Intel Itanium 2 1.50 GHz. Archived on 17 Oct 2023.
  41. ^ "[PATCH] x86/cpu: Add two Intel CPU model numbers - Tony Luck". lore.kernel.org. Retrieved 2024-09-24.
  42. ^ InstLatX64, 72-Core Intel Xeon Phi 7290 CPUID dump
  43. ^ InstLatx64, 96-Core AMD Ryzen Threadripper Pro 7995WX CPUID dump
  44. ^ Intel® Processor Identification and the CPUID Instruction (PDF), Intel, May 2002, archived from the original (PDF) on 2021-04-17
  45. ^ Linux 6.3 kernel sources, /arch/x86/include/asm/cpuid.h, line 69
  46. ^ gcc-patches mailing list, CPUID Patch for IDT Winchip, May 21, 2019
  47. ^ Geoff Chappell, CMPXCHG8B Support in the 32-Bit Windows Kernel, Jan 23, 2008. Archived on Jan 30, 2023.
  48. ^ AMD, AMD Processor Recognition Application Note, publication #20734, rev D, Jan 1997, page 13
  49. ^ Intel, AP-485 Application Note - Intel Processor Identification and the CPUID Instruction, order no. 241618-006, march 1997, table 5 on page 10, see bit 10.
  50. ^ Michal Necasek, SYSENTER, Where Are You?, OS/2 Museum, July 20, 2017
  51. ^ Geoff Chappell, ECX From CPUID Leaf 1, Jan 26, 2020. Archived on May 9, 2020.
  52. ^ Huggahalli, Ram; Iyer, Ravi; Tetrick, Scott (2005). "Direct Cache Access for High Bandwidth Network I/O". ACM SIGARCH Computer Architecture News. 33 (2): 50–59. CiteSeerX 10.1.1.85.3862. doi:10.1145/1080695.1069976. CiteSeerX:10.1.1.91.957.
  53. ^ Drepper, Ulrich (2007), What Every Programmer Should Know About Memory, CiteSeerX:10.1.1.91.957
  54. ^ a b Intel, Itanium Architecture Software Developer's Manual, rev 2.3, volume 4: IA-32 Instruction Set, may 2010, document number: 323208, table 2-5, page 4:81, see bits 20 and 30. Archived on Feb 15, 2012.
  55. ^ Intel, AP-485, Processor Identification and the CPUID Instruction flag, rev 30, jan 2006, page 26
  56. ^ Michal Necasek, HTT Means Hyper-Threading, Right?, OS/2 Museum, dec 11, 2017
  57. ^ "Mechanisms to determine if software is running in a VMware virtual machine". VMware Knowledge Base. VMWare. 2015-05-01. Intel and AMD CPUs have reserved bit 31 of ECX of CPUID leaf 0x1 as the hypervisor present bit. This bit allows hypervisors to indicate their presence to the guest operating system. Hypervisors set this bit and physical CPUs (all existing and future CPUs) set this bit to zero. Guest operating systems can test bit 31 to detect if they are running inside a virtual machine.
  58. ^ Kataria, Alok; Hecht, Dan (2008-10-01). "Hypervisor CPUID Interface Proposal". LKML Archive on lore.kernel.org. Archived from the original on 2019-03-15. Bit 31 of ECX of CPUID leaf 0x1. This bit has been reserved by Intel & AMD for use by hypervisors and indicates the presence of a hypervisor. Virtual CPU's (hypervisors) set this bit to 1 and physical CPU's (all existing and future CPU's) set this bit to zero. This bit can be probed by the guest software to detect whether they are running inside a virtual machine.
  59. ^ "AMD64 Technology AMD64 Architecture Programmer's Manual Volume 2: System Programming" (PDF) (3.41 ed.). Advanced Micro Devices, Inc. p. 498. 24593. Archived from the original (PDF) on 30 Sep 2023. Retrieved 9 September 2023. 15.2.2 Guest Mode This new processor mode is entered through the VMRUN instruction. When in guest mode, the behavior of some x86 instructions changes to facilitate virtualization. The CPUID function numbers 4000_0000h-4000_00FFh have been reserved for software use. Hypervisors can use these function numbers to provide an interface to pass information from the hypervisor to the guest. This is similar to extracting information about a physical CPU by using CPUID. Hypervisors use the CPUID Fn 400000[FF:00] bit to denote a virtual platform. Feature bit CPUID Fn0000_0001_ECX[31] has been reserved for use by hypervisors to indicate the presence of a hypervisor. Hypervisors set this bit to 1 and physical CPU's set this bit to zero. This bit can be probed by the guest software to detect whether they are running inside a virtual machine.
  60. ^ Intel SDM vol 2A, order no. 253666-053, Jan 2015, p. 244
  61. ^ Intel, Itanium Processor Reference Manual for Software Development, rev 2.0, order no. 245320-003, December 2001, page 110. Archived from the original on 18 Feb 2004.
  62. ^ Intel, Processor Identification and the CPUID Instruction Application Note 485, order no. 241618-036, Aug 2009, page 26. Archived on 6 Oct 2023.
  63. ^ InstLatX64, Willamette-128 CPUID dump. Archived on 7 Dec 2019.
  64. ^ InstlatX64, Intel Atom 230 CPUID dump. Archived on 7 Dec 2019.
  65. ^ WikiChip, Bonnell. Archived on 16 Jul 2017.
  66. ^ Cyrix, Cyrix CPU Detection Guide, rev 1.01, 2 Oct 1997, page 13.
  67. ^ Intel, Processor Identification and the CPUID Instruction Application Note 485, order no. 241618-037, Jan 2011, page 32. Archived on 17 Oct 2023.
  68. ^ Geoff Chappell, CPUID Leaf 2, 26 Jan 2020. Archived on Sep 4, 2023.
  69. ^ Intel, Itanium 2 Processor Reference Manual, order no. 251110-003, May 2004, page 192. Archived from the original on 7 Dec 2006.
  70. ^ Intel, Itanium 2 Processor Specification Update, order.no. 251141-028, Nov 2004, erratum 6 on page 26. Archived from the original on 25 Nov 2004.
  71. ^ Intel, Atom C3000 Processor Product Family Specification Update, order no. 336345-020, page 16, Mar 2023. Archived on 7 Oct 2023.
  72. ^ Intel, Xeon Processor 7500 Series Datasheet, order no. 323341-001, March 2010, page 150. Archived on Oct 8, 2023.
  73. ^ Intel, Optimization Reference Manual, volume 1, order no. 248966-049, jan 2024, chapter 9.6.3.3, p. 361. Archived on 19 Apr 2024.
  74. ^ a b Shih Kuo (Jan 27, 2012). "Intel 64 Architecture Processor Topology Enumeration".
  75. ^ "Processor and Core Enumeration Using CPUID | AMD". Developer.amd.com. Archived from the original on 2014-07-14. Retrieved 2014-07-10.
  76. ^ "Sandybridge processors report incorrect core number?". Software.intel.com. 2012-12-29. Retrieved 2014-07-10.
  77. ^ "cpuid, __cpuidex". Msdn.microsoft.com. 2014-06-20. Retrieved 2014-07-10.
  78. ^ "x86 architecture - CPUID". sandpile.org. Retrieved 2014-07-10.
  79. ^ "topology.cpp in ps/trunk/source/lib/sysdep/arch/x86_x64 – Wildfire Games". Trac.wildfiregames.com. 2011-12-27. Archived from the original on 2021-03-09. Retrieved 2014-07-10.
  80. ^ Hyper-Threading Technology and Multi-Core Processor Detection
  81. ^ Intel, Architecture Instruction Set Extensions Programming Reference, order no. 319433-052, March 2024, chapter 17. Archived on Apr 7, 2024.
  82. ^ Intel, Intel Processor Identification and the CPUID Instruction (AP-485, rev 30), order no. 241618-030, Jan 2006, page 19.
  83. ^ Intel, Intel 64 and IA-32 Architecture Software Developer's Manual, order no. 352462-079, volume 3B, section 15.4.4.4, page 3503
  84. ^ Intel, Processor Identification and the CPUID Instruction, order no. 241618-038, apr 2012, p.38
  85. ^ Intel, Product Change Notification 108701, 1 aug 2008. Archived on May 11, 2023
  86. ^ a b "Performance Monitoring Impact of Intel Transactional Synchronization Extension Memory Ordering Issue" (PDF). Intel. June 2023. p. 8. Retrieved 8 May 2024.
  87. ^ a b c Intel, Architecture Specification: Intel Trust Domain Extensions (Intel TDX) Module, order no. 344425-001, sep 2020, pages 120-122. Archived from the original on Jul 29, 2021.
  88. ^ Intel, Deprecating the PCOMMIT instruction, sep 12, 2016. Archived on Apr 23, 2023.
  89. ^ Intel, AVX512-FP16 Architecture Specification (PDF), document number 347407-001, June 2021. Archived on Oct 26, 2022
  90. ^ a b c d "Speculative Execution Side Channel Mitigations" (PDF). Revision 2.0. Intel. May 2018 [January 2018]. Document Number: 336996-002. Retrieved 2018-05-26.
  91. ^ "IBRS patch series [LWN.net]".
  92. ^ a b c Intel, Flexible Return and Event Delivery (FRED) Specification, rev 6.1, December 2023, order no. 346446-007, page 14. Archived on Dec 22, 2023.
  93. ^ Intel, Software Developer's Manual, order no. 325462-080, June 2023 - information about prematurely busy shadow stacks provided in Volume 1, section 17.2.3 on page 410; Volume 2A, table 3.8 (CPUID EAX=7,ECX=2) on page 820; Volume 3C, table 25-14 on page 3958 and section 26.4.3 on page 3984.
  94. ^ LKML, Re: (PATCH v3 00/21) Enable CET Virtualization, Jun 16, 2023 - provides additional discussion of how the CET-SSS prematurely-busy stack issue interacts with virtualization.
  95. ^ a b Intel, Advanced Vector Extensions 10, rev 1.0, July 2023, order no. 355989-001. Archived on Jul 24, 2023.
  96. ^ a b Intel, Advanced Performance Extensions - Architecture Specification, rev 2.0, Aug 2023, order no. 355828-002, page 37. Archived on Sep 10, 2023.
  97. ^ a b c Intel, Branch History Injection and Intra-mode Branch Target Injection / CVE-2022-0001, CVE-2022-0002 / INTEL-SA-00598, 4 Aug 2022. Archived on 5 May 2023.
  98. ^ Intel, Return Stack Buffer Underflow / CVE-2022-29901, CVE-2022-28693 / INTEL-SA-00702, 12 Jul 2022. Archived on 13 Jul 2022.
  99. ^ Intel, Asynchronous Enclave Exit Notify and the EDECCSSA User Leaf Function, 30 Jun 2022. Archived on 21 Nov 2022.
  100. ^ Linux kernel git commit 604dc91, x86/tsc: Use CPUID.0x16 to calculate missing crystal frequency, 9 May 2019 - contains notes on computing the Core Crystal Clock frequency on CPUs that don't specify it, and corresponding C code.
  101. ^ Intel, SDM Volume 3A, order no 253668-083, March 2024, chapter 11.5.4, page 408
  102. ^ instlatx64, Spreadtrum SC9853I-IA CPUID dump
  103. ^ Intel, Architecture Specification: Intel Trust Domain Extensions (Intel TDX) Module, order no. 344425-005, page 93, Feb 2023. Archived on 20 Jul 2023.
  104. ^ a b Microsoft, Hyper-V Feature and Interface Discovery, 8 Jul 2022. Archived on 18 Nov 2023.
  105. ^ Geoff Chappell, HV_HYPERVISOR_INTERFACE, 10 Dec 2022. Archived on 1 Feb 2023.
  106. ^ QEMU documentation, Hyper-V Enlightenments. Archived on 17 Apr 2024.
  107. ^ Linux 6.8.7 kernel source, /source/arch/x86/kvm/cpuid.c, lines 1482-1488
  108. ^ Linux kernel documentation, KVM CPUID bits. Archived on 22 Aug 2022.
  109. ^ Linux 6.8.7 kernel source, /arch/x86/kvm/hyperv.c, line 2793
  110. ^ Linux kernel documentation, Virtualization support: 4.118 KVM_GET_SUPPORTED_HV_CPUID. Archived on 26 Mar 2024.
  111. ^ FreeBSD commit 560d5ed, 28 Jun 2013, see file /sys/amd64/vmm/x86.c, line 48. Archived on 22 Apr 2024.
  112. ^ HyperKit source code, /src/lib/vmm/x86.c line 42, 8 May 2021.
  113. ^ Xen, CPUID Interface to Xen. Archived on 22 Apr 2024.
  114. ^ QEMU source code, fb/target/i386/cpu.c, line 6475, 18 Mar 2024.
  115. ^ VMWare, Mechanisms to determine if software is running in a VMware virtual machine, 1 May 2015. Archived on 18 Jun 2023.
  116. ^ Project ACRN, CPUID Virtualization, 20 Oct 2022. Archived on 25 Mar 2023.
  117. ^ VirtualBox documentation, 9.30 Paravirtualized Debugging. Archived on 22 Apr 2024.
  118. ^ QNX, Hypervisor - Checking the guest's environment, 25 Mar 2022. Archived on 22 Apr 2024.
  119. ^ NetBSD source code, /sys/dev/nvmm/x86/nvmm_x86_vmx.c, line 1430, 6 Nov 2023.
  120. ^ OpenBSD source code, /sys/arch/amd64/include/vmmvar.h, line 24, 9 Apr 2024.
  121. ^ Siemens Jailhouse hypervisor documentation, hypervisor-interfaces.txt, line 39, 27 Jan 2020. Archived on Jul 5, 2024.
  122. ^ Intel HAXM source code, /core/cpuid.c, line 979, 20 Jan 2023. Archived on 22 Apr 2024.
  123. ^ Intel KGT source code (trusty branch), /vmm/vmexit/vmexit_cpuid.c, lines 17-75, 15 May 2019
  124. ^ Linux kernel v5.18.19 source code, /source/drivers/visorbus/visorchipset.c, line 28
  125. ^ N. Moore, virt: Support detection of LMHS SRE guests #25594, 1 Dec 2022 - Lockheed Martin-provided pull-request for systemd, adding CPUID hypervisor ID string for the LMHS SRE hypervisor. Archived on 23 Apr 2024.
  126. ^ CPUID Specification, publication no.25481, rev 2.34 (PDF), AMD, September 2010, archived from the original (PDF) on 18 Aug 2022
  127. ^ Linux kernel source code
  128. ^ AMD, AMD-K6 Processor Data Sheet, order no. 20695H/0, march 1998, section 24.2, page 283
  129. ^ AMD, AMD-K6 Processor Revision Guide, order no. 21846H/0, June 1999, section 3.2.1, page 17
  130. ^ Intel, Intel 64 and IA-32 Architectures Software Developer's Manual, order no. 325462-079, march 2023, table 3-8 on page 3-238
  131. ^ Lightweight Profiling Specification (PDF), AMD, August 2010, archived from the original (PDF) on 2012-11-27, retrieved 2013-04-03
  132. ^ Cyrix, Cyrix CPU Detection Guide, rev 1.01, oct 2, 1997, page 12
  133. ^ AMD, Geode GX1 Processor Data Book, rev 5.0, december 2003, pages 202 and 226. Archived on 20 Apr 2020.
  134. ^ Transmeta, Processor Recognition, 2002-05-07, page 5
  135. ^ a b AMD, Processor Recognition Application Note, pub.no. 20734, rev. 3.13, december 2005. Section 2.2.2 (p.20) and Section 3 (pages 33 to 40) provide details on how CPUID.(EAX=8000_0001):EDX[bit 19] should be used to identify processors. Section 3 also provides information on AMD's brand name string MSRs. Archived from the original on Jun 26, 2006.
  136. ^ AMD, Family 10h BKDG, document no. 31116, rev 3.62, jan 11, 2013, p. 388 - lists the NodeId bit. Archived on 16 Jan 2019.
  137. ^ AMD, AMD64 Architecture Programmer's Manual Volume 3, pub. no. 24594, rev 3.20, may 2013, page 579 - lists the StreamPerfMon bit
  138. ^ "Intel Processor Identification and the CPUID Instruction" (PDF). Download.intel.com. 2012-03-06. Retrieved 2013-04-11.
  139. ^ InstLatx64, Vortex86DX3 CPUID dump, 27 Sep 2021. Archived on 21 Oct 2021.
  140. ^ InstLatx64, AMD Ryzen 7 6800HS CPUID dump, 21 Feb 2022. Archived on 24 Mar 2023.
  141. ^ Chips and Cheese, Why you can’t trust CPUID, 27 Oct 2022. Archived on 3 Nov 2022.
  142. ^ AMD, Geode LX Databook, pub.id. 33234H, Feb 2009, page 207.
  143. ^ InstLatx64, 2x 24-core Montage Jintide C2460 CPUID dump
  144. ^ InstLatx64, 2x 24-core Intel Xeon Platinum 8160 CPUID dump
  145. ^ InstLatx64, Zhaoxin KaiXian ZX-C+ C4580 CPUID dump
  146. ^ InstLatx64, VIA Eden X4 C4250 CPUID dump
  147. ^ Cyrix, Application Note 112: Cyrix CPU Detection Guide, page 17, 21 July 1998.
  148. ^ Instlatx64, VIA Cyrix III "Samuel" CPUID dump
  149. ^ AMD, BKDG for AMD Family 10h Processors, pub.no. 31116, rev 3.62, jan 11, 2013, page 392. Archived on 16 Jan 2019.
  150. ^ a b c d AMD, PPR For AMD Family 19h Model 61h rev B1 procesors, pub.no. 56713, rev 3.05, Mar 8, 2023, pages 99-100. Archived on 25 Apr 2023.
  151. ^ AMD, BKDG for AMD Family 16h Models 00-0Fh processors, pub.no. 48571, rev 3.03, Feb 19, 2015, page 482. Archived on 16 Jan 2019.
  152. ^ AMD, BIOS and Kernel Developer's Guide for AMD Athlon 64 and AMD Opteron Processors, publication #26094, rev 3.30, feb 2006, pages 29-30 (lists Athlon 64 revision differences, including LMSLE) (archived on 16 Jan 2019), and Revision Guide for AMD Athlon 64 and AMD Opteron Processors, publication #25759, rev 3.79, july 2009, pages 7-8 (lists Athlon 64 revision IDs) (archived on 18 Jan 2019).
  153. ^ AMD, PPR for AMD Family 19h Model 01h, Revision B1 Processors, Volume 1 of 2, document no. 55898, rev 0.50, may 27, 2021, page 98 - lists branch-sampling bit. Archived on Jul 24, 2022
  154. ^ AMD, AMD64 Virtualization Codenamed "Pacifica" Technology, publication no. 33047, rev 3.01, May 2005, appendix B, page 81. Archived on Jun 13, 2011.
  155. ^ AMD, CPUID specification, publication #25481, revision 2.18, jan 2006, page 18.
  156. ^ AMD, CPUID specification, publication #25481, revision 2.34, sep 2010, pages 5 and 11.
  157. ^ Instlatx64, AMD E-350 CPUID dump - has CPUID.(EAX=8000000A):EDX[9] set.
  158. ^ AMD, CPUID specification, publication #25481, revision 2.28, apr 2008, page 21.
  159. ^ AMD, CPUID specification, publication #25481, revision 2.34, sep 2010, page 5 - lists "SseIsa10Compat" as having been dropped in November 2009.
  160. ^ a b AMD, PPR for AMD Family 19h Model 61h, Revision B1 processors, document no. 56713, rev 3.05, mar 8 2023, page 102. Archived on Apr 25, 2023.
  161. ^ AMD, Secure VM Service Module for SEV-SNP Guests, pub.no #58019, rev 1.00, Jul 2023, page 13. Archived on 5 Aug 2023.
  162. ^ a b AMD, PPR for AMD Family 19h Model 61h, Revision B1 processors, document no. 56713, rev 3.05, mar 8 2023, page 116. Archived on Apr 25, 2023.
  163. ^ a b c d e AMD, Technical Update Regarding Speculative Return Stack Overflow, rev 2.0, feb 2024. Archived on Apr 12, 2024.
  164. ^ Ferrie, Peter. "Attacks on Virtual Machine Emulators" (PDF). Symantec. Symantec Advanced Threat Research. Archived from the original (PDF) on 2007-02-07. Retrieved 15 March 2017.
  165. ^ Sandpile, x86 architecture CPUID. Retrieved 22 December 2022.
  166. ^ instlatx64, CPUID dump of AMD A4-5000, lists "HELLO KITTY" string for CPUID leaf 8FFFFFFFh. Retrieved 22 December 2022.
  167. ^ IDT, WinChip 2B Processor Data Sheet, v0.9, April 1999, chapter 3.3.3, page 31.
  168. ^ VIA, PadLock Programming Guide rev. 1.66, aug 4, 2005, page 5. Archived from the original on May 26, 2010
  169. ^ OpenEuler 1.0 LTS kernel sources, /arch/x86/include/asm/cpufeatures.h lines 147-178. Archived on Jul 30, 2023.
  170. ^ VIA, C3 Nehemiah Processor Datasheet, rev 1.13, Sep 29, 2004, page 21
  171. ^ "GCC-mirror/GCC". GitHub. 13 March 2022.
  172. ^ "ARM Information Center". Infocenter.arm.com. Retrieved 2013-04-11.
  173. ^ "Processor version codes and SRM constants". Archived from the original on 2014-09-08. Retrieved 2014-09-08.
  174. ^ a b "IBM System z10 Enterprise Class Technical Guide" (PDF).
  175. ^ "MIPS32 Architecture For Programmers, Volume III: The MIPS32 Privileged Resource Architecture" (PDF). MIPS Technologies, Inc. 2001-03-12.
  176. ^ "PowerPC Operating Environment Architecture, book III" (PDF).
  177. ^ S. Darwish, Ahmed. "[ANNOUNCE] x86-cpuid.org: A machine-readable CPUID repository". Linux Kernel Mailing List archive. Retrieved 20 July 2024.

Further reading

External links