[RFC PATCH v4 0/2] Support RISC-V CSR read/write in Qtest environment

Ivan Klokov posted 2 patches 2 months ago
target/riscv/cpu.c           | 17 +++++++
target/riscv/cpu.h           |  3 ++
target/riscv/csr.c           | 53 +++++++++++++++++++++-
tests/qtest/libqtest.c       | 27 +++++++++++
tests/qtest/libqtest.h       | 14 ++++++
tests/qtest/meson.build      |  2 +
tests/qtest/riscv-csr-test.c | 86 ++++++++++++++++++++++++++++++++++++
7 files changed, 201 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/riscv-csr-test.c
[RFC PATCH v4 0/2] Support RISC-V CSR read/write in Qtest environment
Posted by Ivan Klokov 2 months ago
These patches add functionality for unit testing RISC-V-specific registers.
The first patch adds a Qtest backend, and the second implements a simple test.

---
v4:
   - Change wrapper to direct call
---

Ivan Klokov (2):
  target/riscv: Add RISC-V CSR qtest support
  tests/qtest: QTest example for RISC-V CSR register

 target/riscv/cpu.c           | 17 +++++++
 target/riscv/cpu.h           |  3 ++
 target/riscv/csr.c           | 53 +++++++++++++++++++++-
 tests/qtest/libqtest.c       | 27 +++++++++++
 tests/qtest/libqtest.h       | 14 ++++++
 tests/qtest/meson.build      |  2 +
 tests/qtest/riscv-csr-test.c | 86 ++++++++++++++++++++++++++++++++++++
 7 files changed, 201 insertions(+), 1 deletion(-)
 create mode 100644 tests/qtest/riscv-csr-test.c

-- 
2.34.1