From: Sergiusz Bazanski Date: Mon, 22 Jan 2018 18:20:42 +0000 (+0000) Subject: Set the MABI and MArch of the riscv target. X-Git-Tag: 24jan2021_ls180~1754^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7176492231158d562b6fc1fde7d942dd6bb25fa9;p=litex.git Set the MABI and MArch of the riscv target. Again, this should be tunable, and synchronized with the core settings. --- diff --git a/litex/soc/integration/cpu_interface.py b/litex/soc/integration/cpu_interface.py index 38c5d5e7..fd1e4afb 100644 --- a/litex/soc/integration/cpu_interface.py +++ b/litex/soc/integration/cpu_interface.py @@ -35,7 +35,7 @@ def get_cpu_mak(cpu): elif cpu == "riscv32": assert not clang, "riscv32 not supported with clang." triple = "riscv32-unknown-elf" - cpuflags = "-mno-save-restore" + cpuflags = "-mno-save-restore -march=rv32im -mabi=ilp32" clang = False else: raise ValueError("Unsupported CPU type: "+cpu)