soc/cores/cpu: add riscv64-linux toolchain support for risc-v cpus.
Toolchain can be downloaded from https://toolchains.bootlin.com/
This commit is contained in:
parent
8889821c54
commit
f408527dd4
|
@ -17,7 +17,8 @@ class Minerva(CPU):
|
|||
name = "minerva"
|
||||
data_width = 32
|
||||
endianness = "little"
|
||||
gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed")
|
||||
gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed",
|
||||
"riscv64-linux")
|
||||
linker_output_format = "elf32-littleriscv"
|
||||
io_regions = {0x80000000: 0x80000000} # origin, length
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@ class PicoRV32(CPU):
|
|||
name = "picorv32"
|
||||
data_width = 32
|
||||
endianness = "little"
|
||||
gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed")
|
||||
gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed",
|
||||
"riscv64-linux")
|
||||
linker_output_format = "elf32-littleriscv"
|
||||
io_regions = {0x80000000: 0x80000000} # origin, length
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class RocketRV64(CPU):
|
|||
name = "rocket"
|
||||
data_width = 64
|
||||
endianness = "little"
|
||||
gcc_triple = ("riscv64-unknown-elf")
|
||||
gcc_triple = ("riscv64-unknown-elf", "riscv64-linux")
|
||||
linker_output_format = "elf64-littleriscv"
|
||||
io_regions = {0x10000000: 0x70000000} # origin, length
|
||||
|
||||
|
|
|
@ -78,7 +78,8 @@ class VexRiscv(CPU, AutoCSR):
|
|||
name = "vexriscv"
|
||||
data_width = 32
|
||||
endianness = "little"
|
||||
gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed")
|
||||
gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed",
|
||||
"riscv64-linux")
|
||||
linker_output_format = "elf32-littleriscv"
|
||||
io_regions = {0x80000000: 0x80000000} # origin, length
|
||||
|
||||
|
|
Loading…
Reference in New Issue