soc_core: fix soc_core_argdict
This commit is contained in:
parent
cd8213b988
commit
ef504f62af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue