All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] target/riscv: Dump sstatus CSR in riscv_cpu_dump_state()
@ 2022-11-22 15:46 Bin Meng
  2022-11-23  0:02 ` Alistair Francis
  0 siblings, 1 reply; 6+ messages in thread
From: Bin Meng @ 2022-11-22 15:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alistair Francis, Bin Meng, Palmer Dabbelt, qemu-riscv

sstatus register dump is currently missing in riscv_cpu_dump_state().

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1332
Signed-off-by: Bin Meng <bmeng@tinylab.org>

---

 target/riscv/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index d14e95c9dc..80d76f0181 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -382,6 +382,7 @@ static void riscv_cpu_dump_state(CPUState *cs, FILE *f, int flags)
             CSR_MHARTID,
             CSR_MSTATUS,
             CSR_MSTATUSH,
+            CSR_SSTATUS,
             CSR_HSTATUS,
             CSR_VSSTATUS,
             CSR_MIP,
-- 
2.34.1



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

end of thread, other threads:[~2022-11-25  4:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22 15:46 [PATCH] target/riscv: Dump sstatus CSR in riscv_cpu_dump_state() Bin Meng
2022-11-23  0:02 ` Alistair Francis
2022-11-23  4:07   ` Bin Meng
2022-11-24 23:57     ` Alistair Francis
2022-11-25  3:34       ` Bin Meng
2022-11-25  4:32         ` Alistair Francis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.