From: Huacai Chen Date: Thu, 26 Jun 2014 03:41:31 +0000 (+0800) Subject: MIPS: Loongson-3: Enable the COP2 usage X-Git-Tag: cleanup-for-v3.18~94^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2f826c8f2ff1e4215968042139604633581a13;p=pandora-kernel.git MIPS: Loongson-3: Enable the COP2 usage Loongson-3 has some specific instructions (MMI/SIMD) in coprocessor 2. COP2 isn't independent because it share COP1 (FPU)'s registers. This patch enable the COP2 usage so user-space programs can use the MMI/SIMD instructions. When COP2 exception happens, we enable both COP1 (FPU) and COP2, only in this way the fp context can be saved and restored correctly. Signed-off-by: Huacai Chen Cc: John Crispin Cc: Steven J. Hill Cc: Aurelien Jarno Cc: linux-mips@linux-mips.org Cc: Fuxin Zhang Cc: Zhangjin Wu Patchwork: https://patchwork.linux-mips.org/patch/7189/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed