tools/litex_sim: Fix cpu in configuration (allow list of supported CPU to be listed when invalid cpu_type is provided).
This commit is contained in:
parent
116c2f1549
commit
8c8c1fe6e0
|
@ -407,7 +407,7 @@ def main():
|
||||||
|
|
||||||
# Configuration --------------------------------------------------------------------------------
|
# Configuration --------------------------------------------------------------------------------
|
||||||
|
|
||||||
cpu = CPUS[soc_kwargs.get("cpu_type", "vexriscv")]
|
cpu = CPUS.get(soc_kwargs.get("cpu_type", "vexriscv"))
|
||||||
if soc_kwargs["uart_name"] == "serial":
|
if soc_kwargs["uart_name"] == "serial":
|
||||||
soc_kwargs["uart_name"] = "sim"
|
soc_kwargs["uart_name"] = "sim"
|
||||||
sim_config.add_module("serial2console", "serial")
|
sim_config.add_module("serial2console", "serial")
|
||||||
|
|
Loading…
Reference in New Issue