From: Ivan Klokov <ivan.klokov@syntacore.com>
To: <qemu-devel@nongnu.org>
Cc: <qemu-riscv@nongnu.org>, <palmer@dabbelt.com>,
<bmeng.cn@gmail.com>, <liwei1518@gmail.com>,
<dbarboza@ventanamicro.com>, <zhiwei_liu@linux.alibaba.com>,
<thuth@redhat.com>, <lvivier@redhat.com>, <pbonzini@redhat.com>,
Ivan Klokov <ivan.klokov@syntacore.com>
Subject: [RFC PATCH v2 0/2] Support RISC-V CSR read/write in Qtest environment
Date: Tue, 18 Jun 2024 09:44:41 +0300 [thread overview]
Message-ID: <20240618064443.6474-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.
---
v2:
- Refactor unit test, add missed files
---
Ivan Klokov (2):
Add RISC-V CSR qtest support
QTest example for RISC-V CSR register
target/riscv/cpu.c | 13 +++++++++
target/riscv/cpu.h | 3 +++
target/riscv/csr.c | 49 +++++++++++++++++++++++++++++++++-
tests/qtest/libqos/csr.c | 42 +++++++++++++++++++++++++++++
tests/qtest/libqos/csr.h | 16 +++++++++++
tests/qtest/libqos/meson.build | 3 +++
tests/qtest/libqtest.c | 27 +++++++++++++++++++
tests/qtest/libqtest.h | 14 ++++++++++
tests/qtest/meson.build | 2 ++
tests/qtest/riscv-csr-test.c | 47 ++++++++++++++++++++++++++++++++
10 files changed, 215 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/libqos/csr.c
create mode 100644 tests/qtest/libqos/csr.h
create mode 100644 tests/qtest/riscv-csr-test.c
--
2.34.1
next reply other threads:[~2024-06-18 6:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 6:44 Ivan Klokov [this message]
2024-06-18 6:44 ` [RFC PATCH v2 1/2] Add RISC-V CSR qtest support Ivan Klokov
2024-06-18 7:47 ` Thomas Huth
2024-06-18 6:44 ` [RFC PATCH v2 2/2] QTest example for RISC-V CSR register Ivan Klokov
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=20240618064443.6474-1-ivan.klokov@syntacore.com \
--to=ivan.klokov@syntacore.com \
--cc=bmeng.cn@gmail.com \
--cc=dbarboza@ventanamicro.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=thuth@redhat.com \
--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).