LoongArch: Fix and cleanup csr_era handling in do_ri()
authorHuacai Chen <chenhuacai@loongson.cn>
Mon, 26 Sep 2022 14:33:39 +0000 (22:33 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Sep 2022 02:15:00 +0000 (10:15 +0800)
commit06e76acec70d1381b9a96e6014d5587d84201f82
treeb08e7b19c316b38fcf878a78f8324c966f4a7e1f
parent2938431e9338bf4e8d434513d3a5832d64c0fa8b
LoongArch: Fix and cleanup csr_era handling in do_ri()

We don't emulate reserved instructions and just send a signal to the
current process now. So we don't need to call compute_return_era() to
add 4 (point to the next instruction) to csr_era in pt_regs. RA/ERA's
backup/restore is cleaned up as well.

Signed-off-by: Jun Yi <yijun@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/traps.c