Revert "MIPS: Don't assume 64-bit FP registers for context switch"
authorJames Hogan <james.hogan@imgtec.com>
Fri, 30 Jan 2015 12:09:38 +0000 (12:09 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 27 Mar 2015 18:42:48 +0000 (19:42 +0100)
commit466aec5f292be469e15b3dc3d17b731dab93727c
treeab9aa70efec2d0476dc3d05f209fd1db7c683b64
parent84ab45b33858a87632e1f5e207e302bf48eaf52e
Revert "MIPS: Don't assume 64-bit FP registers for context switch"

This reverts commit 02987633df7ba2f62967791dda816eb191d1add3.

The basic premise of the patch was incorrect since MSA context
(including FP state) is saved using st.d which stores two consecutive
64-bit words in memory rather than a single 128-bit word. This means
that even with big endian MSA, the FP state is still in the first 64-bit
word.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9168/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/asmmacro-32.h
arch/mips/include/asm/asmmacro.h
arch/mips/kernel/asm-offsets.c