mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
[MIPS] Generate SIGILL again
The rdhwr emulation accidentally swallowed the SIGILL from most other illegal instructions. Make sure to return -EFAULT by default. Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
b6c3539bdd
commit
56ebd51bae
@ -534,13 +534,14 @@ static inline int simulate_rdhwr(struct pt_regs *regs)
|
||||
switch (rd) {
|
||||
case 29:
|
||||
regs->regs[rt] = ti->tp_value;
|
||||
break;
|
||||
return 0;
|
||||
default:
|
||||
return -EFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
/* Not ours. */
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
asmlinkage void do_ov(struct pt_regs *regs)
|
||||
|
Loading…
Reference in New Issue
Block a user