aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2013-07-16 07:57:15 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 00:59:19 -0400
commite05c0e81b0628808a7490c35d1803644a18b0405 (patch)
tree868072fd1f5564e1d194704e0a0c88abb715f4f5 /arch/powerpc/Kconfig
parent3a3b5aa63fad4911e239055c2c0a89ce2dac62ce (diff)
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>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r--arch/powerpc/Kconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 3bf72cd2c8fc..7205989b9b59 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -312,6 +312,26 @@ config MATH_EMULATION
312 such as fsqrt on cores that do have an FPU but do not implement 312 such as fsqrt on cores that do have an FPU but do not implement
313 them (such as Freescale BookE). 313 them (such as Freescale BookE).
314 314
315choice
316 prompt "Math emulation options"
317 default MATH_EMULATION_FULL
318 depends on MATH_EMULATION
319
320config MATH_EMULATION_FULL
321 bool "Emulate all the floating point instructions"
322 ---help---
323 Select this option will enable the kernel to support to emulate
324 all the floating point instructions. If your SoC doesn't have
325 a FPU, you should select this.
326
327config MATH_EMULATION_HW_UNIMPLEMENTED
328 bool "Just emulate the FPU unimplemented instructions"
329 ---help---
330 Select this if you know there does have a hardware FPU on your
331 SoC, but some floating point instructions are not implemented by that.
332
333endchoice
334
315config PPC_TRANSACTIONAL_MEM 335config PPC_TRANSACTIONAL_MEM
316 bool "Transactional Memory support for POWERPC" 336 bool "Transactional Memory support for POWERPC"
317 depends on PPC_BOOK3S_64 337 depends on PPC_BOOK3S_64