From: Dmitry Selyutin Date: Sat, 13 Aug 2022 19:06:26 +0000 (+0300) Subject: sv_binutils: consider only SVP64 instructions X-Git-Tag: sv_maxu_works-initial~141 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dad285276d9d9b0f89abc4c9310bfca9059bd70;p=openpower-isa.git sv_binutils: consider only SVP64 instructions --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index f14b63a6..e9f4feb8 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -713,7 +713,7 @@ class Codegen(_enum.Enum): def records(db): fields = {field.name:field.type for field in _dataclasses.fields(Desc)} - for insn in db: + for insn in filter(lambda insn: insn.svp64 is not None, db): desc = {} for (key, cls) in fields.items(): @@ -733,7 +733,7 @@ def records(db): if desc is None: continue - name = Name(insn.name) + name = Name(f"sv.{insn.name}") value = Opcode.Value(insn.opcode.value) mask = Opcode.Mask(insn.opcode.mask) opcode = Opcode(value=value, mask=mask)