[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v5 0/2] Support RISC-V CSR read/write in Qtest environment
From: |
Ivan Klokov |
Subject: |
[RFC PATCH v5 0/2] Support RISC-V CSR read/write in Qtest environment |
Date: |
Tue, 5 Nov 2024 17:28:38 +0300 |
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.
---
v5:
- Move code from target/riscv to hw/riscv
---
Ivan Klokov (2):
target/riscv: Add RISC-V CSR qtest support
tests/qtest: QTest example for RISC-V CSR register
hw/riscv/riscv_hart.c | 65 ++++++++++++++++++++++++++++++++++++
tests/qtest/libqtest.c | 27 +++++++++++++++
tests/qtest/libqtest.h | 14 ++++++++
tests/qtest/meson.build | 2 +-
tests/qtest/riscv-csr-test.c | 56 +++++++++++++++++++++++++++++++
5 files changed, 163 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/riscv-csr-test.c
--
2.34.1
- [RFC PATCH v5 0/2] Support RISC-V CSR read/write in Qtest environment,
Ivan Klokov <=