[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2] target/riscv: Add some comments for sstatus CSR in riscv_cpu_
[PATCH v2] target/riscv: Add some comments for sstatus CSR in riscv_cpu_dump_state()
Fri, 25 Nov 2022 13:03:54 +0800
sstatus register dump is currently missing in riscv_cpu_dump_state().
As sstatus is a copy of mstatus, which is described in the priv spec,
it seems redundant to print the same information twice.
Add some comments for this to let people know this is intentional.
Signed-off-by: Bin Meng <email@example.com>
Changes in v2:
- Add some comments for missing sstatus
target/riscv/cpu.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index d14e95c9dc..a6c27977c5 100644
@@ -382,6 +382,10 @@ static void riscv_cpu_dump_state(CPUState *cs, FILE *f,
+ * CSR_SSTATUS is intentionally omitted here as its value
+ * can be figured out by looking at CSR_MSTATUS
- [PATCH v2] target/riscv: Add some comments for sstatus CSR in riscv_cpu_dump_state(),
Bin Meng <=