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