about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-07-26 11:10:08 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-07-26 11:10:44 -0700
commit65d87ade1ee6f3ac099105e3511bd09bdc24cf3f (patch)
tree4a4a37507e6e33c4484f5a2f53883bc5052c927f /ChangeLog
parentc9dc4d5117afea7283d5fd80c80be8cc09cde84d (diff)
downloadglibc-65d87ade1ee6f3ac099105e3511bd09bdc24cf3f.tar.gz
glibc-65d87ade1ee6f3ac099105e3511bd09bdc24cf3f.tar.xz
glibc-65d87ade1ee6f3ac099105e3511bd09bdc24cf3f.zip
x86: Correct index_cpu_LZCNT [BZ # 23456]
cpu-features.h has

 #define bit_cpu_LZCNT		(1 << 5)
 #define index_cpu_LZCNT	COMMON_CPUID_INDEX_1
 #define reg_LZCNT

But the LZCNT feature bit is in COMMON_CPUID_INDEX_80000001:

Initial EAX Value: 80000001H
ECX Extended Processor Signature and Feature Bits:
Bit 05: LZCNT available

index_cpu_LZCNT should be COMMON_CPUID_INDEX_80000001, not
COMMON_CPUID_INDEX_1.  The VMX feature bit is in COMMON_CPUID_INDEX_1:

Initial EAX Value: 01H
Feature Information Returned in the ECX Register:
5 VMX

Reviewed-by: Carlos O'Donell <carlos@redhat.com>

	[BZ # 23456]
	* sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
	COMMON_CPUID_INDEX_80000001.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e25bd7a18..dcd8258635 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ # 23456]
+	* sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
+	COMMON_CPUID_INDEX_80000001.
+
 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
 
 	* string/tst-xbzero-opt.c (use_test_buffer): New function.