From f0cda69f24b19e81b6b1fcf68d856034b21015c3 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 31 May 2022 16:16:03 +0000 Subject: [PATCH] sv_binutils: fix enum name in C code --- src/openpower/sv/sv_binutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2