summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Kendrick <rob.kendrick@codethink.co.uk>2014-07-23 10:03:58 +0100
committerRalf Baechle <ralf@linux-mips.org>2014-07-30 19:13:35 +0200
commitc3b9b945e02e011c63522761e91133ea43eb6939 (patch)
tree016753aecbdfb9764f940cfb3bcf2186bfe56b39
parent8393c524a25609a30129e4a8975cf3b91f6c16a5 (diff)
MIPS: math-emu: Fix instruction decoding.
Tested-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/math-emu/cp1emu.c2
1 files changed, 1 insertions, 1 deletions
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)