Skip to content

Commit

Permalink
Add riscv32imafc target specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed Jan 11, 2024
1 parent 48c08c9 commit ab85ad6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sel4-generate-target-specs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl Arch {
v.push(Self::Riscv64(RiscVArch::IMAC));
v.push(Self::Riscv64(RiscVArch::GC));
v.push(Self::Riscv32(RiscVArch::IMAC));
// v.push(Self::Riscv32(RiscVArch::IMAFC)); # TODO add after bumping Rust toolchain
v.push(Self::Riscv32(RiscVArch::IMAFC));
v.push(Self::X86_64);
v
}
Expand Down
19 changes: 19 additions & 0 deletions support/targets/riscv32imafc-sel4-minimal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"arch": "riscv32",
"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,
"env": "sel4",
"exe-suffix": ".elf",
"features": "+m,+a,+c,+f",
"linker": "rust-lld",
"linker-flavor": "gnu-lld",
"llvm-abiname": "ilp32f",
"llvm-target": "riscv32",
"max-atomic-width": 32,
"panic-strategy": "abort",
"relocation-model": "static",
"target-pointer-width": "32"
}
18 changes: 18 additions & 0 deletions support/targets/riscv32imafc-sel4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"arch": "riscv32",
"cpu": "generic-rv32",
"crt-objects-fallback": "false",
"data-layout": "e-m:e-p:32:32-i64:64-n32-S128",
"emit-debug-gdb-scripts": false,
"env": "sel4",
"exe-suffix": ".elf",
"features": "+m,+a,+c,+f",
"has-thread-local": true,
"linker": "rust-lld",
"linker-flavor": "gnu-lld",
"llvm-abiname": "ilp32f",
"llvm-target": "riscv32",
"max-atomic-width": 32,
"relocation-model": "static",
"target-pointer-width": "32"
}

0 comments on commit ab85ad6

Please sign in to comment.