From: Ivan Klokov <ivan.klokov@syntacore.com>
To: <qemu-devel@nongnu.org>
Cc: <qemu-riscv@nongnu.org>, <palmer@dabbelt.com>,
<alistair.francis@wdc.com>, <bmeng.cn@gmail.com>,
<liwei1518@gmail.com>, <dbarboza@ventanamicro.com>,
<zhiwei_liu@linux.alibaba.com>, <farosas@redhat.com>,
<lvivier@redhat.com>, <pbonzini@redhat.com>,
Ivan Klokov <ivan.klokov@syntacore.com>
Subject: [RFC PATCH v5 0/2] Support RISC-V CSR read/write in Qtest environment
Date: Tue, 5 Nov 2024 17:28:38 +0300 [thread overview]
Message-ID: <20241105142840.59617-1-ivan.klokov@syntacore.com> (raw)
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
next reply other threads:[~2024-11-05 14:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 14:28 Ivan Klokov [this message]
2024-11-05 14:28 ` [RFC PATCH v5 1/2] target/riscv: Add RISC-V CSR qtest support Ivan Klokov
2024-11-05 20:43 ` Fabiano Rosas
2024-11-05 14:28 ` [RFC PATCH v5 2/2] tests/qtest: QTest example for RISC-V CSR register Ivan Klokov
2024-11-05 20:44 ` Fabiano Rosas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241105142840.59617-1-ivan.klokov@syntacore.com \
--to=ivan.klokov@syntacore.com \
--cc=alistair.francis@wdc.com \
--cc=bmeng.cn@gmail.com \
--cc=dbarboza@ventanamicro.com \
--cc=farosas@redhat.com \
--cc=liwei1518@gmail.com \
--cc=lvivier@redhat.com \
--cc=palmer@dabbelt.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=zhiwei_liu@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).