From: Florent Kermarrec Date: Tue, 17 Dec 2019 08:33:46 +0000 (+0100) Subject: cpu/microwatt: add io_regions and gcc_flags X-Git-Tag: 24jan2021_ls180~802 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9edde20dee4618096c9b3756c9671f7a03dba41;p=litex.git cpu/microwatt: add io_regions and gcc_flags --- diff --git a/litex/soc/cores/cpu/microwatt/core.py b/litex/soc/cores/cpu/microwatt/core.py index 4988e6f3..9cd998ca 100644 --- a/litex/soc/cores/cpu/microwatt/core.py +++ b/litex/soc/cores/cpu/microwatt/core.py @@ -19,11 +19,19 @@ class Microwatt(CPU): endianness = "little" gcc_triple = ("powerpc64le-linux") linker_output_format = "elf64-powerpc64le" - io_regions = {0x80000000: 0x80000000} # origin, length FIXME: check default IO regions + io_regions = {0xc0000000: 0x10000000} # origin, length @property def gcc_flags(self): - # FIXME: add default flags + flags = "-m64 " + flags += "-mabi=elfv2 " + flags += "-msoft-float " + flags += "-mno-string " + flags += "-mno-multiple " + flags += "-mno-vsx " + flags += "-mno-altivec " + flags += "-mlittle-endian " + flags += "-mstrict-align " flags += "-D__microwatt__ " return flags