Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liu Yu and committed by
Kumar Gala
09af52f7 d5755e6f

+1 -5
+1 -5
arch/powerpc/math-emu/math_efp.c
··· 171 171 case EFDNABS: ret = XA; break; 172 172 case EFDNEG: ret = XA; break; 173 173 case EFDSUB: ret = AB; break; 174 - 175 - default: 176 - printk(KERN_ERR "\nOoops! SPE instruction no type found."); 177 - printk(KERN_ERR "\ninst code: %08lx\n", speinsn); 178 174 } 179 175 180 176 return ret; ··· 191 195 192 196 type = insn_type(speinsn); 193 197 if (type == NOTYPE) 194 - return -ENOSYS; 198 + goto illegal; 195 199 196 200 func = speinsn & 0x7ff; 197 201 fc = (speinsn >> 21) & 0x1f;