From: Dmitry Selyutin Date: Mon, 10 Apr 2023 16:11:23 +0000 (+0300) Subject: sv_binutils: fix broken script X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6d40732466f22017bc3109d47127d52d64cb187;p=openpower-isa.git sv_binutils: fix broken script --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index b4dea0ac..c2ba8796 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -664,6 +664,12 @@ def collect(db): if issubclass(cls, Boolean): value = Boolean(value) + elif issubclass(cls, Extra): + value = tuple(value) + if not value: + value = cls["NONE"] + else: + value = cls[value[0].name] elif issubclass(cls, _enum.Enum): value = cls[value.name] else: