commit | 06e76acec70d1381b9a96e6014d5587d84201f82 | [log] [tgz] |
---|---|---|
author | Huacai Chen <chenhuacai@loongson.cn> | Mon Sep 26 22:33:39 2022 +0800 |
committer | Huacai Chen <chenhuacai@loongson.cn> | Thu Sep 29 10:15:00 2022 +0800 |
tree | b08e7b19c316b38fcf878a78f8324c966f4a7e1f | |
parent | 2938431e9338bf4e8d434513d3a5832d64c0fa8b [diff] |
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>