Skip to content

riscv: add all available CSRs to 'info registers'

Daniel Henrique Barboza qemu-devel qemu-riscv 1 version Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3target/riscv/cpu: add riscv_dump_csr() helpertarget/riscv/cpu.c+22 -321 reply
2/3target/riscv/cpu: print all FPU CSRs in riscv_cpu_dump_state()target/riscv/cpu.c+2 -01 reply
3/3target/riscv: print all available CSRs in riscv_cpu_dump_state()target/riscv/cpu.c target/riscv/cpu.h target/riscv/csr.c+39 -362 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAlistair Francis
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] riscv: add all available CSRs to 'info registers'

Hi,

The output of HMP 'info registers', implemented by the cpu_dump_state callback, returns way less CSRs than what we have available in the default rv64 CPU with default options.

This series changes the callback to add all available non-vector CSRs when issuing 'info registers'. The vector CSRs are being handled by another patch [1].

Patches based on alistair/riscv-to-apply.next.

[1] https://lore.kernel.org/qemu-riscv/[email protected]/

Daniel Henrique Barboza (3):
target/riscv/cpu: add riscv_dump_csr() helper target/riscv/cpu: print all FPU CSRs in riscv_cpu_dump_state() target/riscv: print all available CSRs in riscv_cpu_dump_state()

 target/riscv/cpu.c | 107 +++++++++++++++++----------------------------
 target/riscv/cpu.h |   2 +
 target/riscv/csr.c |  18 ++++++++
 3 files changed, 61 insertions(+), 66 deletions(-)
Signature · 1 line
2.49.0