summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-12-26 09:57:15 +0000
committerLuiz Souza <luiz@netgate.com>2018-02-19 14:54:41 -0300
commit4766afb923cc9718a46119776ce2c47de644df8c (patch)
tree53d16aa51cf226b828d7e6e4315bce5553e6c960
parent1027b09f970c81aab8f721168a4500261978c198 (diff)
downloadFreeBSD-src-4766afb923cc9718a46119776ce2c47de644df8c.zip
FreeBSD-src-4766afb923cc9718a46119776ce2c47de644df8c.tar.gz
MFC r327118:
Add missed AVX512VL (128 and 256 bit vector length) extension identification bit. (cherry picked from commit 67e50e43299002bef26a498b82129fa9dd48f9a6)
-rw-r--r--sys/x86/include/specialreg.h1
-rw-r--r--sys/x86/x86/identcpu.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h
index 10bc4e7b..589e665 100644
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -362,6 +362,7 @@
#define CPUID_STDEXT_AVX512CD 0x10000000
#define CPUID_STDEXT_SHA 0x20000000
#define CPUID_STDEXT_AVX512BW 0x40000000
+#define CPUID_STDEXT_AVX512VL 0x80000000
/*
* CPUID instruction 7 Structured Extended Features, leaf 0 ecx info
diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c
index ab7214c..dd2863b 100644
--- a/sys/x86/x86/identcpu.c
+++ b/sys/x86/x86/identcpu.c
@@ -961,6 +961,7 @@ printcpuinfo(void)
"\035AVX512CD"
"\036SHA"
"\037AVX512BW"
+ "\040AVX512VL"
);
}
OpenPOWER on IntegriCloud