cpu/vexriscv_smp/core: Raise an error in do_finalize if no direct memory bus found and wishbone_memory is not set instead of forcing it.

This could eventually be improved in the future but for now will prevent silent incorrect builds.
This commit is contained in:
Florent Kermarrec 2023-01-16 11:49:17 +01:00
parent a39e2c836a
commit a4d5919a2a
1 changed files with 2 additions and 1 deletions

View File

@ -487,7 +487,8 @@ class VexRiscvSMP(CPU):
# When no Direct Memory Bus, do memory accesses through Wishbone Peripheral Bus.
if len(self.memory_buses) == 0:
VexRiscvSMP.wishbone_memory = True
if not VexRiscvSMP.wishbone_memory:
raise ValueError("No Direct Memory Bus found, please add --with-wishbone-memory to your build command.")
# Generate cluster name.
VexRiscvSMP.generate_cluster_name()