Skip to content

Commit

Permalink
Merge pull request raspberrypi#231 from mstorsjo/vfp-emulation
Browse files Browse the repository at this point in the history
ARM: VFP: fix emulation of second VFP instruction
  • Loading branch information
popcornmix committed Feb 25, 2013
2 parents 05960ce + 8aa4264 commit 89caf39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/vfp/vfpmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,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;

/*
Expand Down

0 comments on commit 89caf39

Please sign in to comment.