mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/riscv: csr: Hook debug CSR read/write
This adds debug CSR read/write support to the RISC-V CSR RW table. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220421003324.1134983-4-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
1acdb3b013
commit
b6092544fc
4 changed files with 90 additions and 0 deletions
|
@ -466,6 +466,10 @@ static void riscv_cpu_reset(DeviceState *dev)
|
|||
set_default_nan_mode(1, &env->fp_status);
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
if (riscv_feature(env, RISCV_FEATURE_DEBUG)) {
|
||||
riscv_trigger_init(env);
|
||||
}
|
||||
|
||||
if (kvm_enabled()) {
|
||||
kvm_riscv_reset_vcpu(cpu);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue