-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom Rust target supporting bitmanip extensions
This target description is the same as `riscv32imc-unknown-none-elf` but with the `Zba`, `Zbb`, `Zbs` (collectively `B`), and `Zbc` extensions enabled. Ibex supports more, but upstream LLVM does not. You can check the built-in `riscv32imc-unknown-none-elf` JSON file to compare against using this command: ```sh rustc +nightly \ -Z unstable-options \ --target=riscv32imc-unknown-none-elf \ --print target-spec-json ```
- Loading branch information
Showing
4 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"arch": "riscv32", | ||
"atomic-cas": false, | ||
"cpu": "generic-rv32", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:32:32-i64:64-n32-S128", | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"features": "+m,+c,+zba,+zbb,+zbc,+zbs,+forced-atomics", | ||
"is-builtin": false, | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-target": "riscv32", | ||
"max-atomic-width": 32, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV32IMCBZbc ISA)", | ||
"host_tools": false, | ||
"std": false | ||
}, | ||
"panic-strategy": "abort", | ||
"relocation-model": "static", | ||
"target-pointer-width": "32" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
[toolchain] | ||
targets = ["riscv32imc-unknown-none-elf"] | ||
channel = "nightly" |