projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ea5a26
)
Set the MABI and MArch of the riscv target.
author
Sergiusz Bazanski
<q3k@q3k.org>
Mon, 22 Jan 2018 18:20:42 +0000
(18:20 +0000)
committer
Sergiusz Bazanski
<q3k@q3k.org>
Mon, 22 Jan 2018 18:50:26 +0000
(18:50 +0000)
Again, this should be tunable, and synchronized with the core settings.
litex/soc/integration/cpu_interface.py
patch
|
blob
|
history
diff --git
a/litex/soc/integration/cpu_interface.py
b/litex/soc/integration/cpu_interface.py
index 38c5d5e724b8a8efcca96edb9d6173785f27e535..fd1e4afb961c64a9e09f42fa7f88a00aaee8a4e7 100644
(file)
--- 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)