-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add riscv64*-sel4-microkit* target specs
Signed-off-by: Nick Spinale <[email protected]>
- Loading branch information
Showing
9 changed files
with
241 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+f,+d,+c", | ||
"link-script": "__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-abiname": "lp64d", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAFDC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"panic-strategy": "abort", | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |
31 changes: 31 additions & 0 deletions
31
support/targets/riscv64gc-sel4-microkit-resettable-minimal.json
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,31 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+f,+d,+c", | ||
"link-script": "SECTIONS {\n .persistent : {\n *(.persistent .persistent.*)\n }\n} INSERT BEFORE .data;\n\nASSERT(DEFINED(_reset), \"_reset is not defined\")\n\nENTRY(_reset)\n__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-abiname": "lp64d", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAFDC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"panic-strategy": "abort", | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |
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,30 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+f,+d,+c", | ||
"has-thread-local": true, | ||
"link-script": "SECTIONS {\n .persistent : {\n *(.persistent .persistent.*)\n }\n} INSERT BEFORE .data;\n\nASSERT(DEFINED(_reset), \"_reset is not defined\")\n\nENTRY(_reset)\n__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-abiname": "lp64d", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAFDC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |
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,30 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+f,+d,+c", | ||
"has-thread-local": true, | ||
"link-script": "__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-abiname": "lp64d", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAFDC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |
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,30 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+c", | ||
"link-script": "__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"panic-strategy": "abort", | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |
30 changes: 30 additions & 0 deletions
30
support/targets/riscv64imac-sel4-microkit-resettable-minimal.json
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,30 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+c", | ||
"link-script": "SECTIONS {\n .persistent : {\n *(.persistent .persistent.*)\n }\n} INSERT BEFORE .data;\n\nASSERT(DEFINED(_reset), \"_reset is not defined\")\n\nENTRY(_reset)\n__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"panic-strategy": "abort", | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |
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,29 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+c", | ||
"has-thread-local": true, | ||
"link-script": "SECTIONS {\n .persistent : {\n *(.persistent .persistent.*)\n }\n} INSERT BEFORE .data;\n\nASSERT(DEFINED(_reset), \"_reset is not defined\")\n\nENTRY(_reset)\n__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |
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,29 @@ | ||
{ | ||
"arch": "riscv64", | ||
"code-model": "medium", | ||
"cpu": "generic-rv64", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128", | ||
"emit-debug-gdb-scripts": false, | ||
"env": "sel4", | ||
"exe-suffix": ".elf", | ||
"features": "+m,+a,+c", | ||
"has-thread-local": true, | ||
"link-script": "__sel4_ipc_buffer_obj = (__ehdr_start & ~(4096 - 1)) - 4096;", | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-target": "riscv64", | ||
"max-atomic-width": 64, | ||
"metadata": { | ||
"description": "Bare RISC-V (RV64IMAC ISA)", | ||
"host_tools": false, | ||
"std": false, | ||
"tier": 2 | ||
}, | ||
"relocation-model": "static", | ||
"supported-sanitizers": [ | ||
"shadow-call-stack", | ||
"kernel-address" | ||
], | ||
"target-pointer-width": "64" | ||
} |