diff options
author | Michael Neuling <mikey@neuling.org> | 2012-09-09 20:35:26 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-17 02:31:47 -0400 |
commit | b92a66a65cb4480774066d9a3080c77eb34b7232 (patch) | |
tree | ba40ef5be8bdb9b76e36ec1da29db90189d2a821 /arch/powerpc/Kconfig | |
parent | eda485f06d17f98bd58559fb5dd331951ffd1608 (diff) |
powerpc: Add denormalisation exception handling for POWER6/7
On POWER6 and POWER7 if the input operand to an instruction is a
denormalised single precision binary floating point value we can take
a denormalisation exception where it's expected that the hypervisor
(HV=1) will fix up the inputs before the instruction is run.
This adds code to handle this denormalisation exception for POWER6 and
POWER7.
It also add a CONFIG_PPC_DENORMALISATION option and sets it in
pseries/ppc64_defconfig.
This is useful on bare metal systems only. Based on patch from Milton
Miller.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 98e513b62709..748ccaa3b4b3 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -560,6 +560,14 @@ config SCHED_SMT | |||
560 | when dealing with POWER5 cpus at a cost of slightly increased | 560 | when dealing with POWER5 cpus at a cost of slightly increased |
561 | overhead in some places. If unsure say N here. | 561 | overhead in some places. If unsure say N here. |
562 | 562 | ||
563 | config PPC_DENORMALISATION | ||
564 | bool "PowerPC denormalisation exception handling" | ||
565 | depends on PPC_BOOK3S_64 | ||
566 | default "n" | ||
567 | ---help--- | ||
568 | Add support for handling denormalisation of single precision | ||
569 | values. Useful for bare metal only. If unsure say Y here. | ||
570 | |||
563 | config CMDLINE_BOOL | 571 | config CMDLINE_BOOL |
564 | bool "Default bootloader kernel arguments" | 572 | bool "Default bootloader kernel arguments" |
565 | 573 | ||