diff options
author | 2023-08-25 05:02:46 +0000 | |
---|---|---|
committer | 2023-09-01 13:05:38 -0700 | |
commit | 9300f00439743c4a34d735e1a27118eb68a1504e (patch) | |
tree | 302e170bdb865dca73b5646cb23b4aac3809af9b /scripts/generate_rust_analyzer.py | |
parent | RISC-V: vector: export VLENB csr in __sc_riscv_v_state (diff) | |
download | linux-rng-9300f00439743c4a34d735e1a27118eb68a1504e.tar.xz linux-rng-9300f00439743c4a34d735e1a27118eb68a1504e.zip |
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: 0c59922c769a ("riscv: Add ptrace vector support")
Signed-off-by: Andy 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: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions