Set the MABI and MArch of the riscv target.

Again, this should be tunable, and synchronized with the core settings.
This commit is contained in:
Sergiusz Bazanski 2018-01-22 18:20:42 +00:00
parent 7ea5a26734
commit 7176492231
1 changed files with 1 additions and 1 deletions

View File

@ -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)