qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] riscv: add all available CSRs to 'info registers'
@ 2025-06-23 17:21 Daniel Henrique Barboza
  2025-06-23 17:21 ` [PATCH 1/3] target/riscv/cpu: add riscv_dump_csr() helper Daniel Henrique Barboza
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Daniel Henrique Barboza @ 2025-06-23 17:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, alistair.francis, liwei1518, zhiwei_liu, palmer,
	Daniel Henrique Barboza

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/20250623145306.991562-1-dbarboza@ventanamicro.com/


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(-)

-- 
2.49.0



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-10-31  3:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23 17:21 [PATCH 0/3] riscv: add all available CSRs to 'info registers' Daniel Henrique Barboza
2025-06-23 17:21 ` [PATCH 1/3] target/riscv/cpu: add riscv_dump_csr() helper Daniel Henrique Barboza
2025-09-15  3:13   ` Alistair Francis
2025-06-23 17:21 ` [PATCH 2/3] target/riscv/cpu: print all FPU CSRs in riscv_cpu_dump_state() Daniel Henrique Barboza
2025-09-15  3:13   ` Alistair Francis
2025-06-23 17:21 ` [PATCH 3/3] target/riscv: print all available " Daniel Henrique Barboza
2025-09-15  3:22   ` Alistair Francis
2025-09-15 11:49     ` Daniel Henrique Barboza
2025-07-08 10:48 ` [PATCH 0/3] riscv: add all available CSRs to 'info registers' Daniel Henrique Barboza
2025-09-03 16:53 ` Daniel Henrique Barboza
2025-09-03 20:56 ` Anton Johansson via
2025-10-31  2:58 ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).