Skip to content

Commit

Permalink
Enable supported bitmanip extensions for Rust demos
Browse files Browse the repository at this point in the history
Ibex supports a few more bitmanip extensions but they're not supported
in upstream LLVM / Rust.
  • Loading branch information
jwnrt committed Aug 23, 2024
1 parent 4a27f7d commit a1201cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sw/rust/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
[build]
target = "riscv32imc-unknown-none-elf"

# Enable supported bitmanip extension features.
rustflags = ["-Ctarget-feature=+zba,+zbb,+zbc,+zbs"]

[target.riscv32imc-unknown-none-elf]
runner = "../../util/load_demo_system.sh run"

Expand Down
2 changes: 1 addition & 1 deletion sw/rust/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
targets = ["riscv32imc-unknown-none-elf"]
channel = "nightly"
components = ["rust-src"]

0 comments on commit a1201cf

Please sign in to comment.