From: Dmitry Selyutin Date: Tue, 25 Jan 2022 18:47:26 +0000 (+0000) Subject: sv_binutils: drop opcode structure X-Git-Tag: sv_maxu_works-initial~531 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07977c5f1ff68b4fdfac713c5528a88a1e3616d5;p=openpower-isa.git sv_binutils: drop opcode structure --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 9ceeee63..7c9244b4 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -216,16 +216,12 @@ class Record(CType): @_dataclasses.dataclass(eq=True, frozen=True) class Entry(CType): name: Name - opcode: Opcode record: Record def __lt__(self, other): if not isinstance(other, self.__class__): return NotImplemented - if self.name == other.name: - return self.opcode < other.opcode - return self.name < other.name @classmethod @@ -282,9 +278,6 @@ class Codegen(_enum.Enum): yield "#endif" yield "" - yield from Opcode.c_decl() - yield "" - enums = ( In1Sel, In2Sel, In3Sel, OutSel, CRInSel, CROutSel, @@ -418,7 +411,7 @@ def parse(path, opcode_cls): record[key] = value - yield Entry(name=name, opcode=opcode, record=Record(**record)) + yield Entry(name=name, record=Record(**record)) def main(codegen):