This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
HWCAP for fsqrt vs PPC64
- From: Kumar Gala <galak at kernel dot crashing dot org>
- To: Alan Modra <amodra at bigpond dot net dot au>, Paul Mackerras <paulus at samba dot org>, Wienskoski Edmar-RA8797 <RA8797 at freescale dot com>, Stewart Katherine-RA4863 <ra4863 at freescale dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- Cc: "linuxppc-dev at ozlabs dot org list" <linuxppc-dev at ozlabs dot org>, libc-alpha at sourceware dot org
- Date: Fri, 25 Jun 2010 09:51:42 -0500
- Subject: HWCAP for fsqrt vs PPC64
Guys,
We seem to be using the PPC_FEATURE_64 HWCAP to imply fsqrt support. However, the new e5500 core from Freescale that is 64-bit does NOT implement fsqrt so this assumption is wrong:
sysdeps/powerpc/fpu/math_private.h
# if __WORDSIZE == 64 || defined _ARCH_PWR4
# define __CPU_HAS_FSQRT 1
# else
# define __CPU_HAS_FSQRT ((GLRO(dl_hwcap) & PPC_FEATURE_64) != 0)
# endif
Open to suggestions on how to fix this as its a kernel/libc interaction point.
- k