mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cpu/naxriscv/vexriscv_smp: Declare/Add OpenSBI region in add_soc_compoents.
Avoid doing it in Linux-on-LiteX-Vexriscv.
This commit is contained in:
parent
b4db2a3ef2
commit
05724d9fea
2 changed files with 6 additions and 0 deletions
|
@ -261,6 +261,9 @@ class NaxRiscv(CPU):
|
|||
soc.irq.add("uart", n=0)
|
||||
soc.irq.add("timer0", n=1)
|
||||
|
||||
# Add OpenSBI region.
|
||||
soc.add_memory_region("opensbi", self.mem_map["main_ram"] + 0x00f00000, 0x80000, type="cached+linker")
|
||||
|
||||
# Define ISA.
|
||||
soc.add_constant("CPU_ISA", NaxRiscv.get_arch())
|
||||
|
||||
|
|
|
@ -382,6 +382,9 @@ class VexRiscvSMP(CPU):
|
|||
soc.irq.add("uart", n=0)
|
||||
soc.irq.add("timer0", n=1)
|
||||
|
||||
# Add OpenSBI region.
|
||||
soc.add_memory_region("opensbi", self.mem_map["main_ram"] + 0x00f00000, 0x80000, type="cached+linker")
|
||||
|
||||
# Define number of CPUs
|
||||
soc.add_config("CPU_COUNT", VexRiscvSMP.cpu_count)
|
||||
soc.add_constant("CPU_ISA", VexRiscvSMP.get_arch())
|
||||
|
|
Loading…
Reference in a new issue