cpu/microwatt: add io_regions and gcc_flags
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Dec 2019 08:33:46 +0000 (09:33 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Dec 2019 08:33:46 +0000 (09:33 +0100)
litex/soc/cores/cpu/microwatt/core.py

index 4988e6f3137f80130ee9bbe236acf3b7ef8b6836..9cd998caff99e4d7ca2edbf045ded23fe9ce0efb 100644 (file)
@@ -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