From: Dmitry Selyutin Date: Tue, 31 May 2022 16:16:03 +0000 (+0000) Subject: sv_binutils: fix enum name in C code X-Git-Tag: sv_maxu_works-initial~407 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0cda69f24b19e81b6b1fcf68d856034b21015c3;p=openpower-isa.git sv_binutils: fix enum name in C code --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index c0d200e9..8ed66490 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -198,7 +198,7 @@ class Constant(CType, _enum.Enum, metaclass=EnumMeta): yield f"#define {key} {value}" def c_value(self, *, prefix="", suffix="", **kwargs): - yield f"{prefix}{self.__class__.c_tag.upper()}_{self.name.upper()}{suffix}" + yield f"{prefix}{self.__class__.c_tag.upper()}_{self.c_name.upper()}{suffix}" Mode = Constant("Mode", _SVP64MODE)