]> Git Repo - qemu.git/commitdiff
target-i386: Add Intel SHA_NI instruction support.
authorYi Sun <[email protected]>
Wed, 14 Dec 2016 02:50:03 +0000 (10:50 +0800)
committerPaolo Bonzini <[email protected]>
Thu, 22 Dec 2016 15:00:25 +0000 (16:00 +0100)
Add SHA_NI feature bit. Its spec can be found at:
https://software.intel.com/sites/default/files/managed/39/c5/325462-sdm-vol-1-2abcd-3abcd.pdf

Signed-off-by: Yi Sun <[email protected]>
Message-Id: <1481683803[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
target/i386/cpu.c
target/i386/cpu.h

index de1f30eeda63ba1f21d8b7b9217b1aeac7b5d7ae..993f825e02f6343a140347401e12194aaa308347 100644 (file)
@@ -422,7 +422,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
             "avx512f", "avx512dq", "rdseed", "adx",
             "smap", "avx512ifma", "pcommit", "clflushopt",
             "clwb", NULL, "avx512pf", "avx512er",
-            "avx512cd", NULL, "avx512bw", "avx512vl",
+            "avx512cd", "sha-ni", "avx512bw", "avx512vl",
         },
         .cpuid_eax = 7,
         .cpuid_needs_ecx = true, .cpuid_ecx = 0,
index c6057240227229378f0b6b746c17be2b2598af8d..d0bf62446bc7d946a2a2229d243948a861739903 100644 (file)
@@ -621,6 +621,7 @@ typedef uint32_t FeatureWordArray[FEATURE_WORDS];
 #define CPUID_7_0_EBX_AVX512PF (1U << 26) /* AVX-512 Prefetch */
 #define CPUID_7_0_EBX_AVX512ER (1U << 27) /* AVX-512 Exponential and Reciprocal */
 #define CPUID_7_0_EBX_AVX512CD (1U << 28) /* AVX-512 Conflict Detection */
+#define CPUID_7_0_EBX_SHA_NI   (1U << 29) /* SHA1/SHA256 Instruction Extensions */
 #define CPUID_7_0_EBX_AVX512BW (1U << 30) /* AVX-512 Byte and Word Instructions */
 #define CPUID_7_0_EBX_AVX512VL (1U << 31) /* AVX-512 Vector Length Extensions */
 
This page took 0.029602 seconds and 4 git commands to generate.