This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / mips / math-emu / cp1emu.c
index 9b0abe9..f39b021 100644 (file)
@@ -528,9 +528,9 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx)
                if (MIPSInst_FUNC(ir) != movc_op)
                        return SIGILL;
                cond = fpucondbit[MIPSInst_RT(ir) >> 2];
-               if (((ctx->fcr31 & cond) != 0) == ((MIPSInst_RT(ir) & 1) != 0))
-                       xcp->regs[MIPSInst_RD(ir)] =
-                               xcp->regs[MIPSInst_RS(ir)];
+               if (((ctx->fcr31 & cond) != 0) != ((MIPSInst_RT(ir) & 1) != 0))
+                       return 0;
+               xcp->regs[MIPSInst_RD(ir)] = xcp->regs[MIPSInst_RS(ir)];
                break;
 #endif