Re: [RFC PATCH v5 1/2] target/riscv: Add RISC-V CSR qtest support

2024-11-05 Thread Fabiano Rosas
Ivan Klokov writes: > The RISC-V architecture supports the creation of custom > CSR-mapped devices. It would be convenient to test them in the same way > as MMIO-mapped devices. To do this, a new call has been added > to read/write CSR registers. > > Signed-off-by: Ivan Klokov > --- > hw/riscv/

[RFC PATCH v5 1/2] target/riscv: Add RISC-V CSR qtest support

2024-11-05 Thread Ivan Klokov
The RISC-V architecture supports the creation of custom CSR-mapped devices. It would be convenient to test them in the same way as MMIO-mapped devices. To do this, a new call has been added to read/write CSR registers. Signed-off-by: Ivan Klokov --- hw/riscv/riscv_hart.c | 65 ++