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