From 68c013d13fc2c77ab7c64a0269caa5d7004667fb Mon Sep 17 00:00:00 2001 From: Paul Sajna Date: Sun, 1 Mar 2020 01:39:03 -0800 Subject: [PATCH] add riscv-sifive-elf triple --- litex/soc/cores/cpu/blackparrot/core.py | 2 +- litex/soc/cores/cpu/minerva/core.py | 2 +- litex/soc/cores/cpu/picorv32/core.py | 2 +- litex/soc/cores/cpu/rocket/core.py | 2 +- litex/soc/cores/cpu/vexriscv/core.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/litex/soc/cores/cpu/blackparrot/core.py b/litex/soc/cores/cpu/blackparrot/core.py index dfb790c00..b58ac1a1d 100644 --- a/litex/soc/cores/cpu/blackparrot/core.py +++ b/litex/soc/cores/cpu/blackparrot/core.py @@ -48,7 +48,7 @@ class BlackParrotRV64(CPU): name = "blackparrot" data_width = 64 endianness = "little" - gcc_triple = ("riscv64-unknown-elf", "riscv64-linux") + gcc_triple = ("riscv64-unknown-elf", "riscv64-linux", "riscv-sifive-elf") linker_output_format = "elf64-littleriscv" io_regions = {0x30000000: 0x20000000} # origin, length diff --git a/litex/soc/cores/cpu/minerva/core.py b/litex/soc/cores/cpu/minerva/core.py index 9bc970895..2c3d967cb 100644 --- a/litex/soc/cores/cpu/minerva/core.py +++ b/litex/soc/cores/cpu/minerva/core.py @@ -18,7 +18,7 @@ class Minerva(CPU): data_width = 32 endianness = "little" gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed", - "riscv64-linux") + "riscv64-linux", "riscv-sifive-elf") linker_output_format = "elf32-littleriscv" io_regions = {0x80000000: 0x80000000} # origin, length diff --git a/litex/soc/cores/cpu/picorv32/core.py b/litex/soc/cores/cpu/picorv32/core.py index c2122677c..0729af1c0 100644 --- a/litex/soc/cores/cpu/picorv32/core.py +++ b/litex/soc/cores/cpu/picorv32/core.py @@ -35,7 +35,7 @@ class PicoRV32(CPU): data_width = 32 endianness = "little" gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed", - "riscv64-linux") + "riscv64-linux", "riscv-sifive-elf") linker_output_format = "elf32-littleriscv" io_regions = {0x80000000: 0x80000000} # origin, length diff --git a/litex/soc/cores/cpu/rocket/core.py b/litex/soc/cores/cpu/rocket/core.py index 108a49678..3f94cf2df 100644 --- a/litex/soc/cores/cpu/rocket/core.py +++ b/litex/soc/cores/cpu/rocket/core.py @@ -67,7 +67,7 @@ class RocketRV64(CPU): name = "rocket" data_width = 64 endianness = "little" - gcc_triple = ("riscv64-unknown-elf", "riscv64-linux") + gcc_triple = ("riscv64-unknown-elf", "riscv64-linux", "riscv-sifive-elf") linker_output_format = "elf64-littleriscv" io_regions = {0x10000000: 0x70000000} # origin, length diff --git a/litex/soc/cores/cpu/vexriscv/core.py b/litex/soc/cores/cpu/vexriscv/core.py index 08c2c8a26..996cbf76d 100644 --- a/litex/soc/cores/cpu/vexriscv/core.py +++ b/litex/soc/cores/cpu/vexriscv/core.py @@ -79,7 +79,7 @@ class VexRiscv(CPU, AutoCSR): data_width = 32 endianness = "little" gcc_triple = ("riscv64-unknown-elf", "riscv32-unknown-elf", "riscv-none-embed", - "riscv64-linux") + "riscv64-linux", "riscv-sifive-elf") linker_output_format = "elf32-littleriscv" io_regions = {0x80000000: 0x80000000} # origin, length