]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: math-emu: Fix instruction decoding.
authorRob Kendrick <rob.kendrick@codethink.co.uk>
Wed, 23 Jul 2014 09:03:58 +0000 (10:03 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 17:13:35 +0000 (19:13 +0200)
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/cp1emu.c

index 736c17a226e9791066b01e73e0e8ade7f5e66fcb..bf0fc6b16ad9487648c0e38f945db0fd7f5461d6 100644 (file)
@@ -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)