Merge pull request #467 from antmicro/region_type_fix

soc_core: Fix region type generation
This commit is contained in:
enjoy-digital 2020-04-15 07:56:48 +02:00 committed by GitHub
commit a298a9e568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(): for region in self.bus.regions.values():
region.length = region.size region.length = region.size
region.type = "cached" if region.cached else "io" region.type = "cached" if region.cached else "io"
if region.linker:
region.type += "+linker"
self.csr_regions = self.csr.regions self.csr_regions = self.csr.regions
for name, value in self.config.items(): for name, value in self.config.items():
self.add_config(name, value) self.add_config(name, value)