sw64: fix instruction fault handler
Sunway inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5PNCX -------------------------------- An issue says that when parent traces a child, child does not terminate after signal SIGILL is delivered. This is because BPT/GENTRAP/OPDEC make regs->pc = exc_pc + 4 in hmcode. It used to send SIGILL to child with incorrect regs->pc. As a result, after PTRACE_CONT request is made on child, it will skip the exception instruction and go on. This patch makes `regs->pc = exc_pc` for SIGILL to fix this issue, then restructures code to make it clear. Signed-off-by: NHe Sheng <hesheng@wxiat.com> Signed-off-by: NGu Zitao <guzitao@wxiat.com>
Showing
想要评论请 注册 或 登录