Skip to content

Commit 09af52f

Browse files
Liu Yukumargala
authored andcommitted
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>
1 parent d5755e6 commit 09af52f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎arch/powerpc/math-emu/math_efp.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@ static unsigned long insn_type(unsigned long speinsn)
171171
case EFDNABS: ret = XA; break;
172172
case EFDNEG: ret = XA; break;
173173
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);
178174
}
179175

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

196192
type = insn_type(speinsn);
197193
if (type == NOTYPE)
198-
return -ENOSYS;
194+
goto illegal;
199195

200196
func = speinsn & 0x7ff;
201197
fc = (speinsn >> 21) & 0x1f;

0 commit comments

Comments
 (0)