From: Florent Kermarrec Date: Sat, 28 Sep 2019 17:04:38 +0000 (+0200) Subject: soc_core: avoid manual listing of support CPUs, just use CPU.keys() X-Git-Tag: 24jan2021_ls180~973 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68ba1c60be6d630793541e355c7342c176d2bf08;p=litex.git soc_core: avoid manual listing of support CPUs, just use CPU.keys() --- 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,