Skip to content

Add RISC-V detection macro and more architecture instructions - #92574

Merged
bors merged 1 commit into
rust-lang:masterfrom
luojia65:riscv-kernel-dev-rust
Jan 5, 2022
Merged

Add RISC-V detection macro and more architecture instructions#92574
bors merged 1 commit into
rust-lang:masterfrom
luojia65:riscv-kernel-dev-rust

Conversation

@luojia65

Copy link
Copy Markdown
Contributor

This pull request includes:

  • Update stdarch dependency to include ratified RISC-V supervisor and hypervisor instruction intrinsics which is useful in Rust kernel development
  • Add macro is_riscv_feature_detected!
  • Modify impl of core::hint::spin_loop to comply with latest version of core::arch

After this update, users may now develop RISC-V kernels and user applications more freely.

r? @Amanieu

@rust-highfive

Copy link
Copy Markdown
Contributor

⚠️Warning⚠️

  • These commits modify submodules.

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 5, 2022
Comment threadlibrary/core/src/hint.rs Outdated
Comment threadlibrary/core/src/hint.rs Outdated
Update library/core/src/hint.rs
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
Remove redundant config gate
@luojia65
luojia65force-pushed the riscv-kernel-dev-rust branch from 976628b to 06f4453CompareJanuary 5, 2022 07:45
@luojia65

luojia65 commented Jan 5, 2022

Copy link
Copy Markdown
ContributorAuthor

Hello! I applied two review suggestions.

r? @Amanieu

@Amanieu

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jan 5, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 06f4453 has been approved by Amanieu

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 5, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 5, 2022
…askrgr
Rollup of 7 pull requests
Successful merges:
- rust-lang#92092 (Drop guards in slice sorting derive src pointers from &mut T, which is invalidated by interior mutation in comparison)
- rust-lang#92388 (Fix a minor mistake in `String::try_reserve_exact` examples)
- rust-lang#92442 (Add negative `impl` for `Ord`, `PartialOrd` on `LocalDefId`)
- rust-lang#92483 (Stabilize `result_cloned` and `result_copied`)
- rust-lang#92574 (Add RISC-V detection macro and more architecture instructions)
- rust-lang#92575 (ast: Always keep a `NodeId` in `ast::Crate`)
- rust-lang#92583 (:arrow_up: rust-analyzer)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit c570fcb into rust-lang:masterJan 5, 2022
@rustbotrustbot added this to the 1.59.0 milestone Jan 5, 2022
@luojia65
luojia65 deleted the riscv-kernel-dev-rust branch September 9, 2022 07:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@luojia65@rust-highfive@Amanieu@bors@rustbot