Repository navigation
Add the RV64 userland platform runtime - #1982
Draft
Weidong Cui (wdcui) wants to merge 3 commits into
Draft
Weidong Cui (wdcui) wants to merge 3 commits into
Weidong Cui (wdcui) wants to merge 3 commits into
Conversation
Run static RV64GC guests on an RV64 Linux userland platform. Physical gp points to the runner's per-thread GateTls block while the guest runs, and rewritten gp uses and ecalls enter gates emitted by litebox_trampoline. Signal handling canonicalizes interrupted gates, guest FP state is saved and restored, and CI gains an RV64 qemu-user job. Co-authored-by: Copilot <[email protected]> Copilot-Session: d86db0f4-2325-431f-b45d-618163087b99
Correct the gate ABI, emit and recovery docs, and drop t3 from the registers a gate may borrow: a relocated instruction has at most three operands, one of them gp, so one of t0-t2 is always free. Co-authored-by: Copilot <[email protected]> Copilot-Session: d86db0f4-2325-431f-b45d-618163087b99
Correct and reword doc comments in the RV64 userland platform runtime, and replace negated target_arch cfgs in lib.rs with explicit architecture lists. Co-authored-by: Copilot <[email protected]> Copilot-Session: d86db0f4-2325-431f-b45d-618163087b99
|
🤖 SemverChecks 🤖 No breaking API changes detected Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds an RV64 runtime to
litebox_platform_linux_userlandso static RV64GC guests can run on RV64 Linux hosts. While a guest runs, physicalgppoints to a per-threadGateTlsblock, and rewrittengpuses andecalls enter gates thatlitebox_trampolinenow emits for the rewriter. Signal handling canonicalizes interrupted gates, guest FP state is saved and restored on both resume paths, core gains the RV64FpState, and CI adds an RV64 qemu-user job.