From e3ea73ea5f589bbba5063d62279c2230aad6c254 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 10 Apr 2023 19:11:23 +0300 Subject: [PATCH] sv_binutils: fix broken script --- src/openpower/sv/sv_binutils.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.30.2