ARM: VFP: fix emulation of second VFP instruction
[pandora-kernel.git] / arch / arm / vfp / vfpmodule.c
index 7c815b2..111691c 100644 (file)
@@ -409,7 +409,7 @@ void VFP_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs)
         * If there isn't a second FP instruction, exit now. Note that
         * the FPEXC.FP2V bit is valid only if FPEXC.EX is 1.
         */
-       if (fpexc ^ (FPEXC_EX | FPEXC_FP2V))
+       if ((fpexc & (FPEXC_EX | FPEXC_FP2V)) != (FPEXC_EX | FPEXC_FP2V))
                goto exit;
 
        /*