]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ecfa6629e6f5877ef52e797ec3bf7028c963eca
tree868072fd1f5564e1d194704e0a0c88abb715f4f5
parent839ab5db293a715d13e9030cb3fc6fea4aacda9d
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