Skip to content

[DRAFT] RVH-tests#3246

Draft
NicolasDerumigny wants to merge 9 commits into
openhwgroup:masterfrom
NicolasDerumigny:dev/nderumig/rvh-tests
Draft

[DRAFT] RVH-tests#3246
NicolasDerumigny wants to merge 9 commits into
openhwgroup:masterfrom
NicolasDerumigny:dev/nderumig/rvh-tests

Conversation

@NicolasDerumigny
Copy link
Copy Markdown
Contributor

@NicolasDerumigny NicolasDerumigny commented Mar 24, 2026

First draft of our RVH testing c-test suite, implemented in verif/tests/custom/rvh and triggered by verif/regress/hypervisor-tests-cv64a6_imafdch_sv39.sh.

It features:

  • paging tests in host mode (S-mode)
  • paging tests in host mode (U-mode)
  • paging tests in virtual mode (VS-mode), both at hgatp and vsatp level (guest and host page table)

This is by far not exhaustive of all H-Mode quirks, and is only SV39 (64-bit) compliant.

cva6.py, Makefile, ariane_testharness.sv, ariane_tb.cpp and various project files were modified to:

  • execute prints from the verilator harness: a from_host value is added along with the to_host, to answer on syscall completion. This requires CBO operations and HPDCache to ensure that the cache do not interfere on read/writes to these values.
  • explicitly support/show hart id (not very relevant here, but we use it on our fork).
  • allow diff of the output print between spike and verilator (with an additional option to cva6.py).
  • allow diff between verilator and a reference file containing regular expressions (unused in this PR) (with an additional option to cva6.py).
  • add a --no-ecall-exit-marker as ecalls seem to trigger exits on one tool (VCS?) but are required in our H-Mode test suite.

Also:

The goal of this PR is to know what need to be kept, what breaks the current CI and what should be saved for final merge, as discussed in last weekly meeting.

@cainria
Copy link
Copy Markdown
Contributor

cainria commented Mar 24, 2026

Please convert your PR to a Draft PR (below the list of reviewers in the right column of this page). It will prevent from an accidental merge.

@NicolasDerumigny NicolasDerumigny marked this pull request as draft March 24, 2026 17:44
@github-actions
Copy link
Copy Markdown
Contributor

👋 Hi there!

This pull request seems inactive. Need more help or have updates? Feel free to let us know. If there are no updates within the next few days, we'll go ahead and close this PR. 😊

@github-actions github-actions Bot added the Status:Stale Issue or PR is stale and hasn't received any updates. label Apr 24, 2026
@github-actions github-actions Bot removed the Status:Stale Issue or PR is stale and hasn't received any updates. label Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants