MIPS: FPU: Fix conflict of register usage
authorHuacai Chen <chenhc@lemote.com>
Fri, 7 Feb 2014 14:31:33 +0000 (22:31 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 14 Mar 2014 16:49:23 +0000 (17:49 +0100)
commitb616365e6dafb5d7c1cf2a8b6e8cb376a3f4a387
tree04e7d002f0b59362ac488e3c04c982d0cc5f5bce
parentf5868f05dc976ecd849d2a8115fab80301c127cd
MIPS: FPU: Fix conflict of register usage

In _restore_fp_context/_restore_fp_context32, t0 is used for both
CP0_Status and CP1_FCSR. This is a mistake and cause FP exeception on
boot, so fix it.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Tested-by: Andreas Barth <aba@ayous.org>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/6507/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/r4k_fpu.S