From: Dmitry Selyutin Date: Sun, 23 Jan 2022 10:33:30 +0000 (+0000) Subject: sv_binutils: follow binutils coding style X-Git-Tag: sv_maxu_works-initial~544 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aacd4a647ebc984fd0696d81b9efd2ca999c5d7c;p=openpower-isa.git sv_binutils: follow binutils coding style --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 389e0e3c..728a2815 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -289,7 +289,10 @@ class Codegen(_enum.Enum): for (index, entry) in enumerate(entries): yield from indent(entry.c_value(prefix=f"[{index}] = ", suffix=",")) yield f"}};" - yield f"const unsigned int svp64_num_entries = {len(entries)};" + yield "" + + yield "const unsigned int svp64_num_entries = \\" + yield " sizeof (svp64_entries) / sizeof (svp64_entries[0]);" yield "" return {