[Bug libc/12587] sysconf(_SC_*CACHE) returns 0 for all caches on some CPUs.
john.haxby at oracle dot com
sourceware-bugzilla@sourceware.org
Fri Mar 25 12:31:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=12587
John Haxby <john.haxby at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #6 from John Haxby <john.haxby at oracle dot com> 2011-03-25 12:31:06 UTC ---
I moved the cpuid4 code to handle_intel() so that it is used whenever the
cpuid4 is available.
This seems to be a better place to put the test because it avoids a cpuid2
which is not going to be useful and it also works on a greater range of
hardware which makes it a bit easier to test (the Xeon X5670 I have access to
is on a different continent).
I also replaced the asm with __cpuid_count: the previous version didn't use the
macro and so didn't take into account the "#if defined(__i386__) &&
defined(__PIC__)" that the macro definition uses.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list