integration/export/get_memory_x: Replace spi_flash with rom.

Even when ROM is stored in SPI Flash, ROM regions has to be created.
This commit is contained in:
Florent Kermarrec 2022-06-29 11:19:21 +02:00
parent bc6ce4b04b
commit 7388684232
1 changed files with 2 additions and 2 deletions

View File

@ -603,8 +603,8 @@ def get_csr_svd(soc, vendor="litex", name="soc", description=None):
def get_memory_x(soc):
r = get_linker_regions(soc.mem_regions)
r += '\n'
r += 'REGION_ALIAS("REGION_TEXT", spiflash);\n'
r += 'REGION_ALIAS("REGION_RODATA", spiflash);\n'
r += 'REGION_ALIAS("REGION_TEXT", rom);\n'
r += 'REGION_ALIAS("REGION_RODATA", rom);\n'
r += 'REGION_ALIAS("REGION_DATA", sram);\n'
r += 'REGION_ALIAS("REGION_BSS", sram);\n'
r += 'REGION_ALIAS("REGION_HEAP", sram);\n'