Merge patch series "riscv: fix ptrace and export VLENB"
authorPalmer Dabbelt <palmer@rivosinc.com>
Tue, 22 Aug 2023 20:55:14 +0000 (13:55 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 23 Aug 2023 19:35:02 +0000 (12:35 -0700)
commite2de1646f79632ca19980ed6a13a7779ae086088
tree0d8389ca27a6292efed507775f386b719ec0c266
parentca09f772cccaeec4cd05a21528c37a260aa2dd2c
parentc35f3aa34509085bfc9800c86bc9998f8954933d
Merge patch series "riscv: fix ptrace and export VLENB"

Andy Chiu <andy.chiu@sifive.com> says:

We add a vlenb field in Vector context and save it with the
riscv_vstate_save() macro. It should not cause performance regression as
VLENB is a design-time constant and is frequently used by hardware.
Also, adding this field into the __sc_riscv_v_state may benifit us on a
future compatibility issue becuse a hardware may have writable VLENB.

Adding and saving VLENB have an immediate benifit as it gives ptrace a
better view of the Vector extension and makes it possible to reconstruct
Vector register files from the dump without doing an additional csr read.

This patchset also sync the number of note types between us and gdb for
riscv to solve a conflicting note.

This is not an ABI break given that 6.5 has not been released yet.

* b4-shazam-merge:
  RISC-V: vector: export VLENB csr in __sc_riscv_v_state
  RISC-V: Remove ptrace support for vectors

Link: https://lore.kernel.org/r/20230816155450.26200-1-andy.chiu@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>