]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Add support for BMI2 instructions.
authorVMware, Inc <>
Mon, 21 May 2012 22:19:50 +0000 (15:19 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Tue, 22 May 2012 16:24:19 +0000 (09:24 -0700)
The upcoming Haswell CPU adds 8 new instructions advertised via
a new BMI2 bit from the cpuid instruction. This change set adds the
definitions for 6 of the 8 that can be methodically added to the
existing decoder tables. The remaining 2 instructions require a
bit of custom code and will appear upcoming reviews.
Instruction definitions taken from:
"Intel Architecture Instruction Set Extensions Programming Reference"
February 2012.
New instructions: BZHI,PDEP,PEXT,SARX,SHLX,SHRX

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/include/x86cpuid.h

index 23cb499689dab2df431a8dbae58eead07aa50847..7e18a1e10df153d5dd88a0a40c0f5829af4739ff 100644 (file)
@@ -398,6 +398,7 @@ FLAG(   7,  0, EBX, INTEL,   0,  1, FSGSBASE,                      YES, FALSE) \
 FLAG(   7,  0, EBX, AMD,     3,  1, BMI1,                          YES, TRUE ) \
 FLAG(   7,  0, EBX, INTEL,   4,  1, HLE,                           YES, TRUE)  \
 FLAG(   7,  0, EBX, INTEL,   7,  1, SMEP,                          YES, FALSE) \
+FLAG(   7,  0, EBX, INTEL,   8,  1, BMI2,                          YES, TRUE)  \
 FLAG(   7,  0, EBX, INTEL,   9,  1, ENFSTRG,                       YES, FALSE) \
 FLAG(   7,  0, EBX, INTEL,  10,  1, INVPCID,                       NO,  FALSE) \
 FLAG(   7,  0, EBX, INTEL,  11,  1, RTM,                           NO,  TRUE)