Commit 06ed664f authored by Gu Zitao's avatar Gu Zitao Committed by guzitao
Browse files

sw64: add ARCH_TRACEHOOK and regset support

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5G7NL



--------------------------------

By adding TRACEHOOK support, we can access register sets via
PTRACE_GETREGSET and PTRACE_SETREGSET request.

The user-visible regset struct user_pt_regs and user_fpsimd_state
are added in this patch, and they can be accessed with NT_PRSTATUS
and NT_PRFPREG respectively.

Besides, PTRACE_{GET,SET}REGS and PTRACE_{GET,SET}FPREGS requests
which are implemented in error have never been used on sw64, so we
remove them completely.

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent b9e38414
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment