soc_core: Fix region type generation

Include information about being a linker region.
This commit is contained in:
Mateusz Holenko 2020-04-14 21:43:58 +02:00
parent d44fe18bd9
commit 77a05b78e8
1 changed files with 2 additions and 0 deletions

View 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)