This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20119] New: Wrong mask for processors level type from CPUID
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 19 May 2016 14:45:30 +0000
- Subject: [Bug libc/20119] New: Wrong mask for processors level type from CPUID
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20119
Bug ID: 20119
Summary: Wrong mask for processors level type from CPUID
Product: glibc
Version: 2.24
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
X86 CPUID with EAX == 11 returns:
ECX Bits 07 - 00: Level number. Same value in ECX input.
Bits 15 - 08: Level type***.
^^^^^^^^^^^^^^^^^^^^^ This is level type.
Bits 31 - 16: Reserved.
But cacheinfo.c has
int shipped = ebx & 0xff;
int type = ecx & 0xff0;
^^^^^^^^^^^^ The mask should be 0xff00
if (shipped == 0 || type == 0)
break;
--
You are receiving this mail because:
You are on the CC list for the bug.