soc_core: Fix region type generation
authorMateusz Holenko <mholenko@antmicro.com>
Tue, 14 Apr 2020 19:43:58 +0000 (21:43 +0200)
committerMateusz Holenko <mholenko@antmicro.com>
Tue, 14 Apr 2020 19:45:32 +0000 (21:45 +0200)
Include information about being a linker region.

litex/soc/integration/soc_core.py

index b1209a00d7de77e73a247cd4496709d6c8452d7e..3eb0016c70560ec2d71809c154cb07b8ca3d617c 100644 (file)
@@ -244,6 +244,8 @@ class SoCCore(LiteXSoC):
         for region in self.bus.regions.values():
             region.length = region.size
             region.type   = "cached" if region.cached else "io"
+            if region.linker:
+                region.type += "+linker"
         self.csr_regions = self.csr.regions
         for name, value in self.config.items():
             self.add_config(name, value)