diff options
author | Liu Yu <yu.liu@freescale.com> | 2011-09-05 13:01:23 +0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-10-07 08:36:47 +0400 |
commit | 09af52f78e58d9aee0980276833bf3adee3ed07b (patch) | |
tree | a71bbba58931e4756b8aef9bc71dc81e1da839e5 /arch/powerpc/math-emu | |
parent | d5755e6f3a412f012377e28b655d89eff3311f1c (diff) | |
download | linux-09af52f78e58d9aee0980276833bf3adee3ed07b.tar.xz |
powerpc/math_emu/efp: Look for errata handler when type mismatches
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>
Diffstat (limited to 'arch/powerpc/math-emu')
-rw-r--r-- | arch/powerpc/math-emu/math_efp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/math-emu/math_efp.c b/arch/powerpc/math-emu/math_efp.c index 96dbbae1a590..a73f0884d358 100644 --- a/arch/powerpc/math-emu/math_efp.c +++ b/arch/powerpc/math-emu/math_efp.c @@ -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; @@ -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; |