This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH, committed] Use index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: Andrew Senkevich <andrew dot senkevich at intel dot com>
- Date: Fri, 17 Feb 2017 11:56:15 -0800
- Subject: [PATCH, committed] Use index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Tested on x86-64. elf/ld.so and libc.so are identical before and after
the change.
H.J.
---
* sysdeps/x86/cpu-features.c (init_cpu_features): Use
index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
---
ChangeLog | 5 +++++
sysdeps/x86/cpu-features.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index daa26c8..c846949 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ * sysdeps/x86/cpu-features.c (init_cpu_features): Use
+ index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
+
2017-02-17 Joseph Myers <joseph@codesourcery.com>
* math/auto-libm-test-in: Add tests of catan and catanh.
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index 1c714a4..4e8f179 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -215,7 +215,7 @@ init_cpu_features (struct cpu_features *cpu_features)
with stepping >= 4) to avoid TSX on kernels that weren't
updated with the latest microcode package (which disables
broken feature by default). */
- cpu_features->cpuid[COMMON_CPUID_INDEX_7].ebx &= ~(bit_cpu_RTM);
+ cpu_features->cpuid[index_cpu_RTM].reg_RTM &= ~bit_cpu_RTM;
break;
}
}
--
2.9.3