-
Notifications
You must be signed in to change notification settings - Fork 0
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
CSR rework #1
base: rivos/main
Are you sure you want to change the base?
CSR rework #1
Changes from all commits
f6b4c00
cf894aa
374fc4f
d1365ed
3910088
ebe2c27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[toolchain] | ||
channel = "nightly" | ||
targets = [ "riscv32i-unknown-none-elf", "riscv32imc-unknown-none-elf", | ||
"riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf", | ||
"riscv64gc-unknown-none-elf"] | ||
profile = "minimal" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious: Why "minimal" and not just "default"? Is it because we don't want the components There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just copied the file from another riscv project, forgot to fix that. I definitely want |
||
components = [ "rustfmt" ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,11 @@ | |
//! - Wrappers around assembly instructions like `WFI`. | ||
|
||
#![no_std] | ||
#![feature(asm_const)] | ||
|
||
pub mod asm; | ||
pub mod delay; | ||
pub mod interrupt; | ||
//pub mod delay; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. commented code |
||
//pub mod interrupt; | ||
pub mod register; | ||
|
||
#[macro_use] | ||
|
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.
What nightly features do you need?
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.
Also, do you want to pin this to a specific version of nightly?
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.
Nightly is needed for the asm-const feature. In retrospect, I may be able to circumvent this as inline assembly is just implemented with format strings.