MIPS: preserve scalar FP CSR when switching vector context
authorPaul Burton <paul.burton@imgtec.com>
Fri, 11 Jul 2014 15:44:29 +0000 (16:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:43 +0000 (00:06 +0200)
commitb83406735a4ae0aff4b614664d6a64a0fd6b9917
tree2fd9b98b88f6f19c421001666b4aaeb943d1e7e7
parentf7a46fa7bb0047d3e226702a0c4b786862fe6843
MIPS: preserve scalar FP CSR when switching vector context

Switching the vector context implicitly saves & restores the state of
the aliased scalar FP data registers, however the scalar FP control
& status register is distinct from the MSA control & status register.
In order to allow scalar FP to function correctly in programs using
MSA, the scalar CSR needs to be saved & restored along with the MSA
vector context.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7301/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/r4k_switch.S
arch/mips/kernel/traps.c