Browse Source

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>
Rob Kendrick 11 years ago
parent
commit
c3b9b945e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/mips/math-emu/cp1emu.c

+ 1 - 1
arch/mips/math-emu/cp1emu.c

@@ -1827,7 +1827,7 @@ dcopuop:
 	case -1:
 	case -1:
 
 
 		if (cpu_has_mips_4_5_r)
 		if (cpu_has_mips_4_5_r)
-			cbit = fpucondbit[MIPSInst_RT(ir) >> 2];
+			cbit = fpucondbit[MIPSInst_FD(ir) >> 2];
 		else
 		else
 			cbit = FPU_CSR_COND;
 			cbit = FPU_CSR_COND;
 		if (rv.w)
 		if (rv.w)