diff options
author | Qing Zhang <zhangqing@loongson.cn> | 2023-02-25 10:52:57 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-02-25 17:12:17 +0300 |
commit | 424421a7f34c1222d20a6c279f13b9caa71ecc83 (patch) | |
tree | 5a758519364a4b1d2973ada95e98077bde4c6c33 /arch/loongarch/mm | |
parent | 356bd6f23682f11f7afe923d86c7f5f852b97fb2 (diff) | |
download | linux-424421a7f34c1222d20a6c279f13b9caa71ecc83.tar.xz |
LoongArch: ptrace: Add hardware single step support
Use the generic ptrace_resume code for PTRACE_SYSCALL, PTRACE_CONT,
PTRACE_KILL and PTRACE_SINGLESTEP handling. This implies defining
arch_has_single_step() and implementing the user_enable_single_step()
and user_disable_single_step() functions.
LoongArch cannot do hardware single-stepping per se, the hardware
single-stepping it is achieved by configuring the instruction fetch
watchpoints (FWPS) and specifies that the next instruction must trigger
the watch exception by setting the mask bit. In some scenarios
CSR.FWPS.Skip is used to ignore the next hit result, avoid endless
repeated triggering of the same watchpoint without canceling it.
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/mm')
0 files changed, 0 insertions, 0 deletions