about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-02-17 11:53:26 -0800
committerH.J. Lu <hjl.tools@gmail.com>2017-02-17 11:53:26 -0800
commit52ac22365a332cacf7aa97f1b41b3a0adfaff778 (patch)
tree2846dde09999fda4d91bf62ac50a2398c0738236 /sysdeps
parent2c51dfd05d75275b9a2d7be27e5b9544fe3c303f (diff)
downloadglibc-52ac22365a332cacf7aa97f1b41b3a0adfaff778.tar.gz
glibc-52ac22365a332cacf7aa97f1b41b3a0adfaff778.tar.xz
glibc-52ac22365a332cacf7aa97f1b41b3a0adfaff778.zip
Use index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit
	* sysdeps/x86/cpu-features.c (init_cpu_features): Use
	index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86/cpu-features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index 1c714a4017..4e8f179000 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;
 	    }
 	}