integration/export: Fix MockCSRRegion C header export.

Use full address for export since when used, CSR_BASE is related to the top level SoC and not to the imported external mapping.
This commit is contained in:
Florent Kermarrec 2024-03-27 16:49:09 +01:00
parent 4389742a4f
commit e74b7f7ebe
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ def get_csr_header(regions, constants, csr_base=None, with_csr_base_define=True,
alignment = alignment,
read_only = getattr(csr, "read_only", False),
csr_base = csr_base,
with_csr_base_define = with_csr_base_define,
with_csr_base_define = with_csr_base_define and (not isinstance(region, MockCSRRegion)),
with_access_functions = with_access_functions,
)
origin += alignment//8*nr