Skip to content

Improve RISC-V debugging support.

Konrad Schwarz qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 13 repliesIn review
  2. v15 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5RISC-V: larger and more consistent register set for 'info registers'target/riscv/cpu.c+303 -243 replies
2/5RISC-V: monitor's print register functionalitytarget/riscv/monitor.c+69 -00 replies
3/5RISC-V: 'info gmem' to show hypervisor guest -> physical address translationshmp-commands-info.hx include/monitor/hmp-target.h target/riscv/monitor.c+117 -362 replies
4/5RISC-V: Typed CSRs in gdbservertarget/riscv/csr.c target/riscv/csr32-op-gdbserver.h target/riscv/csr64-op-gdbserver.h +6 more+566 -68 replies
5/5RISC-V: Add `v' (virtualization mode) bit to the `priv' virtual debug registergdb-xml/riscv-32bit-virtual.xml gdb-xml/riscv-64bit-virtual.xml target/riscv/gdbstub.c+60 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] Improve RISC-V debugging support.

Added the files missing in v1 of this patch.

-- >8 --
1) Make the QEMU monitor `info registers' command more informative
2) Implement the QEMU monitor `print $register'
3) Introduce a new command info gmem' to the QEMU monitor, which displays a RISC-V hypervisor's guest's 2nd level paging tables similarly to the existing info mem' command.
4) Improve QEMU RISC-V target descriptions for GDB. In particular, add type information for many control and status registers.
5) Extend the virtual `priv' register with hypervisor virtualization status.

Konrad Schwarz (5):
RISC-V: larger and more consistent register set for 'info registers'
RISC-V: monitor's print register functionality
RISC-V: 'info gmem' to show hypervisor guest -> physical address
translations
RISC-V: Typed CSRs in gdbserver
RISC-V: Add v' (virtualization mode) bit to the priv' virtual debug
register

 gdb-xml/riscv-32bit-virtual.xml   |  30 ++-
 gdb-xml/riscv-64bit-virtual.xml   |  30 ++-
 hmp-commands-info.hx              |  16 ++
 include/monitor/hmp-target.h      |   2 +
 target/riscv/cpu.c                | 327 ++++++++++++++++++++++++++---
 target/riscv/csr.c                |   2 +
 target/riscv/csr32-op-gdbserver.h | 109 ++++++++++
 target/riscv/csr64-op-gdbserver.h |  76 +++++++
 target/riscv/gdb_csr_type_group.c |  16 ++
 target/riscv/gdb_csr_type_group.h |   3 +
 target/riscv/gdb_csr_types.c      | 333 ++++++++++++++++++++++++++++++
 target/riscv/gdb_csr_types.h      |   3 +
 target/riscv/gdbstub.c            |  31 ++-
 target/riscv/meson.build          |   4 +-
 target/riscv/monitor.c            | 204 ++++++++++++++----
 15 files changed, 1115 insertions(+), 71 deletions(-)
 create mode 100644 target/riscv/csr32-op-gdbserver.h
 create mode 100644 target/riscv/csr64-op-gdbserver.h
 create mode 100644 target/riscv/gdb_csr_type_group.c
 create mode 100644 target/riscv/gdb_csr_type_group.h
 create mode 100644 target/riscv/gdb_csr_types.c
 create mode 100644 target/riscv/gdb_csr_types.h

base-commit: 8627edfb3f1fca24a96a0954148885c3241c10f8

Signature · 1 line
Konrad Schwarz