sh: fcnvds fix with denormalized numbers on SH-4 FPU.
authorCarmelo AMOROSO <carmelo.amoroso@st.com>
Wed, 15 Oct 2008 15:48:16 +0000 (16:48 +0100)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 29 Jan 2009 02:56:02 +0000 (11:56 +0900)
commit0f6dee232f84c11ec195721571763ccae1b82639
tree8047c67cb532d3735e61ae915cf5a6e366d6855d
parent48865163109690ed988e2d98d6f258ec743c94c7
sh: fcnvds fix with denormalized numbers on SH-4 FPU.

This fixes a bug in the FPU exception handler for the FCNVDS instruction.
To get the register number the instruction is shifted right by 9,
though it should be shifted right by 8.

More information at ST Linux bugzilla:

https://bugzilla.stlinux.com/show_bug.cgi?id=4892

Signed-off-by: Giuseppe Di Giore <giuseppe.di-giore@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4/fpu.c