]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: Add RISC-V CSR qtest support
authorIvan Klokov <ivan.klokov@syntacore.com>
Thu, 9 Jan 2025 09:10:43 +0000 (12:10 +0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 17 Jan 2025 14:48:43 +0000 (11:48 -0300)
commit1addf57177a5646f86ede4eee385932b0214ab72
tree34c585653f196f2db82539cdd433036754f54b61
parent4d5d933bbc7cc52f6cc6b9021f91fa06266222d5
target/riscv: Add RISC-V CSR qtest support

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 <ivan.klokov@syntacore.com>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
hw/riscv/riscv_hart.c
tests/qtest/libqtest.c
tests/qtest/libqtest.h