Skip to content
Snippets Groups Projects
Unverified Commit 9300f004 authored by Andy Chiu's avatar Andy Chiu Committed by Palmer Dabbelt
Browse files

RISC-V: Add ptrace support for vectors


This patch add back the ptrace support with the following fix:
 - Define NT_RISCV_CSR and re-number NT_RISCV_VECTOR to prevent
   conflicting with gdb's NT_RISCV_CSR.
 - Use struct __riscv_v_regset_state to handle ptrace requests

Since gdb does not directly include the note description header in
Linux and has already defined NT_RISCV_CSR as 0x900, we decide to
sync with gdb and renumber NT_RISCV_VECTOR to solve and prevent future
conflicts.

Fixes: 0c59922c ("riscv: Add ptrace vector support")
Signed-off-by: default avatarAndy Chiu <andy.chiu@sifive.com>
Link: https://lore.kernel.org/r/20230825050248.32681-1-andy.chiu@sifive.com


[Palmer: Drop the unused "size" variable in riscv_vr_set().]
Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent c35f3aa3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment