From 68ba1c60be6d630793541e355c7342c176d2bf08 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 28 Sep 2019 19:04:38 +0200 Subject: [PATCH] soc_core: avoid manual listing of support CPUs, just use CPU.keys() --- litex/soc/integration/soc_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 60e5a7c2..21e8d005 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -548,7 +548,7 @@ class SoCCore(Module): def soc_core_args(parser): parser.add_argument("--cpu-type", default=None, - help="select CPU: lm32, or1k, picorv32, vexriscv, minerva, rocket") + help="select CPU: {}".format(", ".join(iter(cpu.CPUS.keys())))) parser.add_argument("--cpu-variant", default=None, help="select CPU variant") parser.add_argument("--integrated-rom-size", default=None, type=int, -- 2.30.2