From: Rob Kendrick Date: Wed, 23 Jul 2014 09:03:58 +0000 (+0100) Subject: MIPS: math-emu: Fix instruction decoding. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c3b9b945e02e011c63522761e91133ea43eb6939;p=linux-beck.git MIPS: math-emu: Fix instruction decoding. Tested-by: Aurelien Jarno Reviewed-by: Aurelien Jarno Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/math-emu/cp1emu.c b/arch/mips/math-emu/cp1emu.c index 736c17a226e9..bf0fc6b16ad9 100644 --- a/arch/mips/math-emu/cp1emu.c +++ b/arch/mips/math-emu/cp1emu.c @@ -1827,7 +1827,7 @@ dcopuop: case -1: if (cpu_has_mips_4_5_r) - cbit = fpucondbit[MIPSInst_RT(ir) >> 2]; + cbit = fpucondbit[MIPSInst_FD(ir) >> 2]; else cbit = FPU_CSR_COND; if (rv.w)