soc_core: fix soc_core_argdict

This commit is contained in:
Florent Kermarrec 2019-10-12 23:05:53 +02:00
parent cd8213b988
commit ef504f62af
1 changed files with 4 additions and 3 deletions

View File

@ -528,6 +528,7 @@ def soc_core_args(parser):
def soc_core_argdict(args):
r = dict()
for a in inspect.getargspec(SoCCore.__init__).args:
if a not in ["self", "platform"]:
arg = getattr(args, a, None)
if arg is not None:
r[a] = arg