]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add denormalisation exception handling for POWER6/7
authorMichael Neuling <mikey@neuling.org>
Mon, 10 Sep 2012 00:35:26 +0000 (00:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 17 Sep 2012 06:31:47 +0000 (16:31 +1000)
commit5e78cce357f5b36edc7039299f3ca055b3ab32ab
treeba40ef5be8bdb9b76e36ec1da29db90189d2a821
parentae4dadfbe3d922dcd3803e5a575a1db072c1f17c
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>
arch/powerpc/Kconfig
arch/powerpc/configs/ppc64_defconfig
arch/powerpc/configs/pseries_defconfig
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/exceptions-64s.S