Add some AVX512 CPUID flags.
authormlarkin <mlarkin@openbsd.org>
Mon, 15 Jan 2018 06:53:02 +0000 (06:53 +0000)
committermlarkin <mlarkin@openbsd.org>
Mon, 15 Jan 2018 06:53:02 +0000 (06:53 +0000)
discussed with sf and kettenis

sys/arch/amd64/amd64/identcpu.c
sys/arch/amd64/include/specialreg.h

index 3e4cd03..554b0a5 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: identcpu.c,v 1.92 2018/01/12 08:21:30 mlarkin Exp $   */
+/*     $OpenBSD: identcpu.c,v 1.93 2018/01/15 06:53:02 mlarkin Exp $   */
 /*     $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $        */
 
 /*
@@ -198,6 +198,8 @@ const struct {
        { SEFF0ECX_UMIP,        "UMIP" },
        { SEFF0ECX_PKU,         "PKU" },
 }, cpu_seff0_edxfeatures[] = {
+       { SEFF0EDX_AVX512_4FNNIW, "AVX512FNNIW" },
+       { SEFF0EDX_AVX512_4FMAPS, "AVX512FMAPS" },
        { SEFF0EDX_IBRS,        "IBRS,IBPB" },
        { SEFF0EDX_STIBP,       "STIBP" },
 }, cpu_tpm_eaxfeatures[] = {
index 85a8ecd..c3319c7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: specialreg.h,v 1.64 2018/01/11 22:31:09 patrick Exp $ */
+/*     $OpenBSD: specialreg.h,v 1.65 2018/01/15 06:53:02 mlarkin Exp $ */
 /*     $NetBSD: specialreg.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $      */
 /*     $NetBSD: x86/specialreg.h,v 1.2 2003/04/25 21:54:30 fvdl Exp $  */
 
 #define SEFF0ECX_UMIP          0x00000004 /* UMIP support */
 #define SEFF0ECX_PKU           0x00000008 /* Page prot keys for user mode */
 /* SEFF EDX bits */
+#define        SEFF0EDX_AVX512_4FNNIW  0x00000004 /* AVX-512 neural network insns */
+#define        SEFF0EDX_AVX512_4FMAPS  0x00000008 /* AVX-512 mult accum single prec */
 #define SEFF0EDX_IBRS          0x04000000 /* IBRS / IBPB Speculation Control */
 #define SEFF0EDX_STIBP         0x08000000 /* STIBP Speculation Control */