Add tests for the Svukte extension #767
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds basic tests for the Svukte extension, "Address-Independent Latency of User-Mode Faults to Supervisor Addresses", which is currently fast-tracked for ratification.
The testing requirements, outlined in the ratification plan are:
Some CSR declarations were added
In Spike, support for this extension was added in riscv-software-src/riscv-isa-sim#2121
In Sail, there is currently no support for this extension, or the hypervisor extension. I plan on adding support for the parts of this extension which do not depend on H to Sail.
This PR is still a bit of a work in progress, but I would greatly appreciate some early feedback. In particular I am not sure if I am following the test naming conventions properly, and how to add tests which we cannot generate reference signatures for using Sail. This PR also depends on several outstanding PRs to fix the trap handling code with the hypervisor extension enabled.
Related Issues
Test development tracking: https://riscv.atlassian.net/browse/RVS-3278
Ratified/Unratified Extensions
List Extensions
Svukte draft specification: riscv/riscv-isa-manual#1564
Reference Model Used
Mandatory Checklist:
Optional Checklist: