From 7176492231158d562b6fc1fde7d942dd6bb25fa9 Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Mon, 22 Jan 2018 18:20:42 +0000 Subject: [PATCH] Set the MABI and MArch of the riscv target. Again, this should be tunable, and synchronized with the core settings. --- litex/soc/integration/cpu_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/cpu_interface.py b/litex/soc/integration/cpu_interface.py index 38c5d5e72..fd1e4afb9 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)