HWCAP for fsqrt vs PPC64
Kumar Gala
galak at kernel.crashing.org
Sat Jun 26 00:51:42 EST 2010
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
More information about the Linuxppc-dev
mailing list