Skip to content

RISC-V: add note about target features vs. misa extensions - #2354

Open
TechnoPorg wants to merge 1 commit into
rust-lang:masterfrom
TechnoPorg:riscv-clarify-target-features
Open

RISC-V: add note about target features vs. misa extensions#2354
TechnoPorg wants to merge 1 commit into
rust-lang:masterfrom
TechnoPorg:riscv-clarify-target-features

Conversation

@TechnoPorg

Copy link
Copy Markdown

As per the discussion in rust-lang/rust#162552 and #t-compiler/risc-v > RISC-V extensions vs. Rust target features, this clarifies that enabling a target feature means the misa bit of the same name (if any) is assumed to always be set. Although this originally came up in the context of the M extension, it applies to many others as well, which are listed in the linked Machine ISA manual page.

cc @RalfJung

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Sep 11, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants