mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/riscv: Add some comments for sstatus CSR in riscv_cpu_dump_state()
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 <bmeng@tinylab.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20221125050354.3166023-1-bmeng@tinylab.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
eacd03cb9e
commit
bc7dca13b7
1 changed files with 4 additions and 0 deletions
|
@ -382,6 +382,10 @@ static void riscv_cpu_dump_state(CPUState *cs, FILE *f, int flags)
|
|||
CSR_MHARTID,
|
||||
CSR_MSTATUS,
|
||||
CSR_MSTATUSH,
|
||||
/*
|
||||
* CSR_SSTATUS is intentionally omitted here as its value
|
||||
* can be figured out by looking at CSR_MSTATUS
|
||||
*/
|
||||
CSR_HSTATUS,
|
||||
CSR_VSSTATUS,
|
||||
CSR_MIP,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue