From: Dmitry Selyutin Date: Wed, 4 May 2022 16:02:57 +0000 (+0000) Subject: sv_binutils: do not index array entries X-Git-Tag: sv_maxu_works-initial~440 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5ec3a38f2253d3a450961c66cf215aa998b988c;p=openpower-isa.git sv_binutils: do not index array entries --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index cf2f7e4b..6bd7c2eb 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -121,7 +121,7 @@ class Array(CType, tuple, metaclass=ArrayMeta, type=CType, size=...): def c_value(self, *, prefix="", suffix="", **kwargs): yield f"{prefix}{{" for (index, item) in enumerate(self): - yield from indent(item.c_value(prefix=f"[{index}] = ", suffix=",")) + yield from indent(item.c_value(suffix=",")) yield f"}}{suffix}"