Skip to content

Commit

Permalink
MIPS: math-emu: Fix instruction decoding.
Browse files Browse the repository at this point in the history
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Rob Kendrick authored and Ralf Baechle committed Jul 30, 2014
1 parent 8393c52 commit c3b9b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/math-emu/cp1emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
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)
Expand Down

0 comments on commit c3b9b94

Please sign in to comment.