OSDN Git Service

target/riscv: Dump Hypervisor registers if enabled
authorAlistair Francis <alistair.francis@wdc.com>
Sat, 1 Feb 2020 01:02:02 +0000 (17:02 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 27 Feb 2020 21:45:31 +0000 (13:45 -0800)
commitdf30e652d42f9528e538d0a8de44879643a7fc0a
treef74b81f36fff3b7d7bfb8ce53cc6f6605f55eadd
parent35f690391bd69922a1987d44546b884adaf29a57
target/riscv: Dump Hypervisor registers if enabled

Dump the Hypervisor registers and the current Hypervisor state.

While we are editing this code let's also dump stvec and scause.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
target/riscv/cpu.c