From e49f3140191f5da1cf118d4293b2773cd48f655e Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 9 Jan 2022 17:22:32 +0000 Subject: [PATCH] sv_binutils: drop semicolons in c_var methods --- src/openpower/sv/sv_binutils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 1bebdb69..e305157e 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -63,7 +63,7 @@ class Enum(Field, _enum.Enum): @classmethod def c_var(cls, name): c_tag = f"svp64_{cls.__name__.lower()}" - yield f"enum {c_tag} {name};" + yield f"enum {c_tag} {name}" # Python forbids inheriting from enum unless it's empty. @@ -121,7 +121,7 @@ class Opcode(Field): @classmethod def c_var(cls, name): - yield f"struct svp64_opcode {name};" + yield f"struct svp64_opcode {name}" class IntegerOpcode(Opcode): @@ -159,7 +159,7 @@ class Name(Field, str): @classmethod def c_var(cls, name): - yield f"const char *{name};" + yield f"const char *{name}" @_dataclasses.dataclass(eq=True, frozen=True) @@ -198,7 +198,7 @@ class Entry: yield from indent([f"uint64_t {field.name} : {bits};"]) bits_all += bits else: - yield from indent(field.type.c_var(name=field.name)) + yield from indent(field.type.c_var(name=f"{field.name};")) bits_rsvd = (64 - (bits_all % 64)) if bits_rsvd: yield from indent([f"uint64_t : {bits_rsvd};"]) @@ -214,7 +214,7 @@ class Entry: @classmethod def c_var(cls, name): - yield f"struct svp64_entry {name};" + yield f"struct svp64_entry {name}" class Codegen(_enum.Enum): -- 2.30.2