-
Notifications
You must be signed in to change notification settings - Fork 550
RISC-V Extensions update including 29 extensions to stabilize #1987
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
Open
a4lg
wants to merge
5
commits into
rust-lang:master
Choose a base branch
from
a4lg:riscv-extensions-2025.1
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.
Conversation
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
c60bc59
to
25d43f0
Compare
25d43f0
to
a35f1c8
Compare
Possible ConsiderationSome platform behavior extensions are hard to make a short, concise summary. Do we prefer to keep long(er than usual) descriptions? Or, do we just link to the RISC-V Profiles documentation and let it explain? My Current PositionI prefer the latter if allowed but mdbook design is confirmed not broken so the current approach (long descriptions) is okay for me. |
Ping. Can someone review this PR? |
a35f1c8
to
d27acfa
Compare
The `Zb` extension does not exist and we instead have the `B` extension which is a superset of the three subextensions: `Zba`, `Zbb` and `Zbs`. For now (since `B` extension is not stabilized on Rust), this commit just removes `Zb`.
This is the latest ratified ISA Manual version and more importantly, some individual documents are merged into this. So, this commit consistently use this Manual (this version) where possible. Along with this, this commit substitutes link IDs from `rv-zb-*` to `rv-*` because `rv-zb-*` will look like the different document (bit-manipulation) is referenced.
rust-lang/rust#140139 changed the target feature implication without updating the Reference. That change is came from the fact that the Zbc extension is a functional superset of the Zbkc extension. This commit fixes this issue. Appendix - List of all Zbkc / Zbc instructions: * `clmul` (Zbkc / Zbc) * `clmulh` (Zbkc / Zbc) * `clmulr` (Zbc only)
This commit directly corresponds to rust-lang/rust#145948. References: 1. RISC-V Instruction Set Manual (version 20250508): <https://github.com/riscv/riscv-isa-manual/tree/20250508> 2. RISC-V Profiles (version 1.0 - RVA23 is not stabilized at the time): <https://github.com/riscv/riscv-profiles/tree/v1.0> 3. RISC-V Profiles (RVA23/RVB23-ratified version): <https://github.com/riscv/riscv-profiles/tree/rva23-rvb23-ratified>
d27acfa
to
5527d55
Compare
Amanieu
approved these changes
Sep 18, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
S-waiting-on-review
Status: The marked PR is awaiting review from a maintainer
S-waiting-on-stabilization
Waiting for a stabilization PR to be merged in the main Rust repository
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 directly corresponds to rust-lang/rust#145948 (and this is a superset of #2002).