Skip to content

Commit a1201cf

Browse files
committed
Enable supported bitmanip extensions for Rust demos
Ibex supports a few more bitmanip extensions but they're not supported in upstream LLVM / Rust.
1 parent 4a27f7d commit a1201cf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sw/rust/.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
[build]
66
target = "riscv32imc-unknown-none-elf"
77

8+
# Enable supported bitmanip extension features.
9+
rustflags = ["-Ctarget-feature=+zba,+zbb,+zbc,+zbs"]
10+
811
[target.riscv32imc-unknown-none-elf]
912
runner = "../../util/load_demo_system.sh run"
1013

sw/rust/rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
targets = ["riscv32imc-unknown-none-elf"]
32
channel = "nightly"
3+
components = ["rust-src"]

0 commit comments

Comments
 (0)