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