From aacd4a647ebc984fd0696d81b9efd2ca999c5d7c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 23 Jan 2022 10:33:30 +0000 Subject: [PATCH] sv_binutils: follow binutils coding style --- src/openpower/sv/sv_binutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.30.2