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:
parent
a39e2c836a
commit
a4d5919a2a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue