3b386f
commit ae725e3f9cb4e1eb825ebe1d55241c98c2ea32f1
3b386f
Author: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3b386f
Date:   Mon Jun 15 11:15:57 2020 -0300
3b386f
3b386f
    powerpc: Add new hwcap values
3b386f
    
3b386f
    Linux commit ID ee988c11acf6f9464b7b44e9a091bf6afb3b3a49 reserved 2 new
3b386f
    bits in AT_HWCAP2:
3b386f
     - PPC_FEATURE2_ARCH_3_1 indicates the availability of the POWER ISA
3b386f
       3.1;
3b386f
     - PPC_FEATURE2_MMA indicates the availability of the Matrix-Multiply
3b386f
       Assist facility.
3b386f
3b386f
diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
3b386f
index b35f5eddc1d309bb..f2853a11df16f63c 100644
3b386f
--- a/sysdeps/powerpc/bits/hwcap.h
3b386f
+++ b/sysdeps/powerpc/bits/hwcap.h
3b386f
@@ -74,3 +74,5 @@
3b386f
 #define PPC_FEATURE2_SCV	   0x00100000 /* scv syscall.  */
3b386f
 #define PPC_FEATURE2_HTM_NO_SUSPEND  0x00080000 /* TM without suspended
3b386f
 						   state.  */
3b386f
+#define PPC_FEATURE2_ARCH_3_1	   0x00040000 /* ISA 3.1.  */
3b386f
+#define PPC_FEATURE2_MMA	   0x00020000 /* Matrix-Multiply Assist.  */
3b386f
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
3b386f
index 35cac2e249916507..4555d4548554e788 100644
3b386f
--- a/sysdeps/powerpc/dl-procinfo.c
3b386f
+++ b/sysdeps/powerpc/dl-procinfo.c
3b386f
@@ -77,7 +77,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][15]
3b386f
     "", "", "", "",
3b386f
     "", "", "", "",
3b386f
     "", "", "", "",
3b386f
-    "", "", "", "htm-no-suspend",
3b386f
+    "", "mma", "arch_3_1", "htm-no-suspend",
3b386f
     "scv", "darn", "ieee128", "arch_3_00",
3b386f
     "htm-nosc", "vcrypto", "tar", "isel",
3b386f
     "ebb", "dscr", "htm", "arch_2_07",