target/riscv: Use riscv_csrrw_debug for cpu_dump
commit665b90d8a4aa7d90bbeee9ff279e37edcd573635
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 20 Oct 2021 03:17:08 +0000 (19 20:17 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 22 Oct 2021 13:35:47 +0000 (22 23:35 +1000)
treeab3597558a1a89dfc424cfaea1cdff09b3f0d757
parenta0245d91dd1ca33ecde8c430ac6986dbd90a84db
target/riscv: Use riscv_csrrw_debug for cpu_dump

Use the official debug read interface to the csrs,
rather than referencing the env slots directly.
Put the list of csrs to dump into a table.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20211020031709.359469-15-richard.henderson@linaro.org
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c