qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v4 0/2] Support RISC-V CSR read/write in Qtest environment
@ 2024-07-03  8:19 Ivan Klokov
  2024-07-03  8:19 ` [RFC PATCH v4 1/2] target/riscv: Add RISC-V CSR qtest support Ivan Klokov
  2024-07-03  8:19 ` [RFC PATCH v4 2/2] tests/qtest: QTest example for RISC-V CSR register Ivan Klokov
  0 siblings, 2 replies; 5+ messages in thread
From: Ivan Klokov @ 2024-07-03  8:19 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, palmer, bmeng.cn, liwei1518, dbarboza, zhiwei_liu,
	thuth, lvivier, pbonzini, Ivan Klokov

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-22  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03  8:19 [RFC PATCH v4 0/2] Support RISC-V CSR read/write in Qtest environment Ivan Klokov
2024-07-03  8:19 ` [RFC PATCH v4 1/2] target/riscv: Add RISC-V CSR qtest support Ivan Klokov
2024-07-22  9:50   ` Thomas Huth
2024-07-03  8:19 ` [RFC PATCH v4 2/2] tests/qtest: QTest example for RISC-V CSR register Ivan Klokov
2024-07-22  9:47   ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).