-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hypervisor extension #612
Draft
defermelowie
wants to merge
28
commits into
riscv:master
Choose a base branch
from
defermelowie:ext_hypervisor_cleanup
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Hypervisor extension #612
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b2e56bb
Setup for hypervisor extension
defermelowie 5cd7e97
Add hypervisor extension state
defermelowie 51c8120
Add read/write for hypervisor extension CSRs
defermelowie 0e9bf01
Add emulator flag to enable hypervisor extension on boot
defermelowie 500d667
Add privilege level switches through xret/ecall
defermelowie 6e29e2c
Fix pre-commit issues
defermelowie ddd4c64
Address translation failures provide ExceptionContext
defermelowie 67142be
Hypervisor CSRs should be accessable from HS-mode
defermelowie 5be5427
Implemented banking of supervisor CSRs in virtualized modes
defermelowie 15b707a
Add promotion of illegal instruction exceptions to virtual instructio…
defermelowie def9f18
Fix vsstatus XLEN mismatch
defermelowie e2c29f2
Fix missing interrupt types
defermelowie 63bf2d3
Add hypervisor guest address translation & protection register
defermelowie 54f30bb
Add delegation of interrupt to VS-mode
defermelowie 3d408d8
Define hypervisor fence instructions
defermelowie ad7397e
Update WFI semantics
defermelowie 158efc4
Add parameters of G-stage address translation modes
defermelowie b014916
Add getters for fields of HGATP
defermelowie 2229f86
Model implicit page walk errors
defermelowie a54d173
Add initial 'second level address translation' implementation
defermelowie fb81f80
Use seperate TLB for each address translation stage
defermelowie 353565a
Fix update of A/D bits for VS-level pages
defermelowie 18bcd5e
Fix typecheck error when xlen == 32
defermelowie a808060
Report transformed instructions upon memory exceptions
defermelowie 3505614
Add hypervisor load & store instructions
defermelowie feed997
Refactor TODOs and comments
defermelowie 7419383
Refactor G-stage exception converter into PTW_error to exception conv…
defermelowie 5d852c2
Various small fixes after manual inspection of third-party tests
defermelowie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"When HSXLEN=32, VSXL field does not exist." The spec isn't terribly clear on what that means, but I'd assume WPRI, so the read should be 0b00 and not 0b01.
I see this code was inspired by the UXL field of the sstatus register, so I'll send a patch for that, unless you know something I missed.
Thanks.