cpu/microwatt: set csr to 0xc0000000 (IO region)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 18 Dec 2019 07:59:35 +0000 (08:59 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 18 Dec 2019 07:59:35 +0000 (08:59 +0100)
litex/soc/cores/cpu/microwatt/core.py

index f8202d3b8e2988efcf2783c50c3f1dcc7eee006b..9fd41ea0079781da1ea157774310933b6223eb08 100644 (file)
@@ -21,6 +21,10 @@ class Microwatt(CPU):
     linker_output_format = "elf64-powerpc64le"
     io_regions           = {0xc0000000: 0x10000000} # origin, length
 
+    @property
+    def mem_map(self):
+        return {"csr": 0xc0000000}
+
     @property
     def gcc_flags(self):
         flags  = "-m64 "