-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: vector: Fixup ptrace when sr_vs is off
When sr_vs is off state, the kernel shouldn't simply return -EINVAL to the gdb request. Some vector regs' values may come from the parent. Change vr_get & vr_set to use a mechanism similar to the riscv_v_first_use_handler. Fixes: 9300f00 ("RISC-V: Add ptrace support for vectors") Signed-off-by: Guo Ren <[email protected]> Signed-off-by: Guo Ren <[email protected]>
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters