Hi,

I am trying to run the ppc64 unstable on a Freescale T2080, which uses the
e6500 CPU. Running python (or any other application using sqrt or sqrtf)
will cause an illegal instruction exception, because the sqrtf opcode is
not supported on the e6500.

This seems to be caused by gcc compiling for power4 by default
(_ARCH_PWR4=1 and _ARCH_PPCSQ=1 set in gcc -E -mD - < /dev/null), although
jrtc27 on #debian-ports pointed to
https://github.com/gcc-mirror/gcc/blob/da8dff89fa9398f04b107e388cb706517ced9505/gcc/config/rs6000/default64.h#L30
which sets MASK_PPC_GPOPT by default (which includes fp sqrt).

What would be the best way to solve this problem?

Bas Vermeulen

Reply via email to