Skip to content

Commit

Permalink
powerpc/math_emu/efp: Look for errata handler when type mismatches
Browse files Browse the repository at this point in the history
We already have cpu a005 errata handler when instruction cannot be
recognized.  Before we lookup the inst, there's type checking, and we also
need to handle it in errata handler when the type checking failed.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Liu Yu authored and Kumar Gala committed Oct 7, 2011
1 parent d5755e6 commit 09af52f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/powerpc/math-emu/math_efp.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ static unsigned long insn_type(unsigned long speinsn)
case EFDNABS: ret = XA; break;
case EFDNEG: ret = XA; break;
case EFDSUB: ret = AB; break;

default:
printk(KERN_ERR "\nOoops! SPE instruction no type found.");
printk(KERN_ERR "\ninst code: %08lx\n", speinsn);
}

return ret;
Expand All @@ -195,7 +191,7 @@ int do_spe_mathemu(struct pt_regs *regs)

type = insn_type(speinsn);
if (type == NOTYPE)
return -ENOSYS;
goto illegal;

func = speinsn & 0x7ff;
fc = (speinsn >> 21) & 0x1f;
Expand Down

0 comments on commit 09af52f

Please sign in to comment.