powerpc: split She math emulation into two parts
authorKevin Hao <haokexin@gmail.com>
Tue, 16 Jul 2013 11:57:15 +0000 (19:57 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:59:19 +0000 (14:59 +1000)
commite05c0e81b0628808a7490c35d1803644a18b0405
tree868072fd1f5564e1d194704e0a0c88abb715f4f5
parent3a3b5aa63fad4911e239055c2c0a89ce2dac62ce
powerpc: split She math emulation into two parts

For some SoC (such as the FSL BookE) even though there does have
a hardware FPU, but not all floating point instructions are
implemented. Unfortunately some versions of gcc do use these
unimplemented instructions. Then we have to enable the math emulation
to workaround this issue. It seems a little redundant to have the
support to emulate all the floating point instructions in this case.
So split the math emulation into two parts. One is for the SoC which
doesn't have FPU at all and the other for the SoC which does have the
hardware FPU and only need some special floating point instructions to
be emulated.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig
arch/powerpc/math-emu/Makefile
arch/powerpc/math-emu/math.c