From: Dmitry Selyutin Date: Wed, 17 Aug 2022 11:50:52 +0000 (+0300) Subject: power_insn: rename Instruction to Record X-Git-Tag: sv_maxu_works-initial~50 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbaefeac11123c3fc429012ec3a857e21a4ff073;p=openpower-isa.git power_insn: rename Instruction to Record --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index bc2cecc0..7dce6565 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -400,7 +400,7 @@ class Fields: @_functools.total_ordering @_dataclasses.dataclass(eq=True, frozen=True) -class Instruction: +class Record: name: str rc: bool section: Section @@ -416,7 +416,7 @@ class Instruction: ) def __lt__(self, other): - if not isinstance(other, Instruction): + if not isinstance(other, Record): return NotImplemented return (self.opcode < other.opcode) @@ -494,7 +494,7 @@ class Instruction: } for index in range(0, 4): for entry in self.svp64.extra[index]: - extra_map[entry.regtype][entry.reg] = Instruction.__EXTRA[index] + extra_map[entry.regtype][entry.reg] = Record.__EXTRA[index] for regtype in (_SVExtraRegType.SRC, _SVExtraRegType.DST): extra = extra_map[regtype].get(reg, _SVExtra.NONE) @@ -592,7 +592,7 @@ class Database: else: variants = {name:False for name in ppc.names} for (name, rc) in variants.items(): - items.add(Instruction(name=name, rc=rc, + items.add(Record(name=name, rc=rc, section=section, ppc=ppc, fields=fields, svp64=svp64)) items = tuple(sorted(items, key=_operator.attrgetter("opcode")))