ce426f
commit df0c40ee3a893238ac11f4c0d876a0c3b49d198d
ce426f
Author: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
ce426f
Date:   Fri Nov 17 21:15:15 2017 -0200
ce426f
ce426f
    powerpc: Update AT_HWCAP2 bits
ce426f
    
ce426f
    Linux commit ID cba6ac4869e45cc93ac5497024d1d49576e82666 reserved a new
ce426f
    bit for a scenario where transactional memory is available, but the
ce426f
    suspended state is disabled.
ce426f
    
ce426f
            * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
ce426f
            macro.
ce426f
            * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
ce426f
            htm-no-suspend.
ce426f
    
ce426f
    Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
ce426f
ce426f
diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
ce426f
index dfc71c2..0668ca0 100644
ce426f
--- a/sysdeps/powerpc/bits/hwcap.h
ce426f
+++ b/sysdeps/powerpc/bits/hwcap.h
ce426f
@@ -72,3 +72,5 @@
ce426f
 						 128-bit */
ce426f
 #define PPC_FEATURE2_DARN	   0x00200000 /* darn instruction.  */
ce426f
 #define PPC_FEATURE2_SCV	   0x00100000 /* scv syscall.  */
ce426f
+#define PPC_FEATURE2_HTM_NO_SUSPEND  0x00080000 /* TM without suspended
ce426f
+						   state.  */
ce426f
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
ce426f
index 4dac16d..55a6e78 100644
ce426f
--- a/sysdeps/powerpc/dl-procinfo.c
ce426f
+++ b/sysdeps/powerpc/dl-procinfo.c
ce426f
@@ -45,7 +45,7 @@
ce426f
 #if !defined PROCINFO_DECL && defined SHARED
ce426f
   ._dl_powerpc_cap_flags
ce426f
 #else
ce426f
-PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][10]
ce426f
+PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][15]
ce426f
 #endif
ce426f
 #ifndef PROCINFO_DECL
ce426f
 = {
ce426f
@@ -61,7 +61,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][10]
ce426f
     "", "", "", "",
ce426f
     "", "", "", "",
ce426f
     "", "", "", "",
ce426f
-    "", "", "", "",
ce426f
+    "", "", "", "htm-no-suspend",
ce426f
     "scv", "darn", "ieee128", "arch_3_00",
ce426f
     "htm-nosc", "vcrypto", "tar", "isel",
ce426f
     "ebb", "dscr", "htm", "arch_2_07",