From 8c8c1fe6e0d6ffc6d5439d84582176e97cba87b3 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 23 Apr 2021 16:23:30 +0200 Subject: [PATCH] tools/litex_sim: Fix cpu in configuration (allow list of supported CPU to be listed when invalid cpu_type is provided). --- litex/tools/litex_sim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/tools/litex_sim.py b/litex/tools/litex_sim.py index fecbb65c3..a819edeb2 100755 --- a/litex/tools/litex_sim.py +++ b/litex/tools/litex_sim.py @@ -407,7 +407,7 @@ def main(): # Configuration -------------------------------------------------------------------------------- - cpu = CPUS[soc_kwargs.get("cpu_type", "vexriscv")] + cpu = CPUS.get(soc_kwargs.get("cpu_type", "vexriscv")) if soc_kwargs["uart_name"] == "serial": soc_kwargs["uart_name"] = "sim" sim_config.add_module("serial2console", "serial")