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:
parent
7ea5a26734
commit
7176492231
|
@ -35,7 +35,7 @@ def get_cpu_mak(cpu):
|
||||||
elif cpu == "riscv32":
|
elif cpu == "riscv32":
|
||||||
assert not clang, "riscv32 not supported with clang."
|
assert not clang, "riscv32 not supported with clang."
|
||||||
triple = "riscv32-unknown-elf"
|
triple = "riscv32-unknown-elf"
|
||||||
cpuflags = "-mno-save-restore"
|
cpuflags = "-mno-save-restore -march=rv32im -mabi=ilp32"
|
||||||
clang = False
|
clang = False
|
||||||
else:
|
else:
|
||||||
raise ValueError("Unsupported CPU type: "+cpu)
|
raise ValueError("Unsupported CPU type: "+cpu)
|
||||||
|
|
Loading…
Reference in New Issue