From b9edde20dee4618096c9b3756c9671f7a03dba41 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 17 Dec 2019 09:33:46 +0100 Subject: [PATCH] cpu/microwatt: add io_regions and gcc_flags --- litex/soc/cores/cpu/microwatt/core.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.30.2