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:
Florent Kermarrec 2021-04-23 16:23:30 +02:00
parent 116c2f1549
commit 8c8c1fe6e0
1 changed files with 1 additions and 1 deletions

View File

@ -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")