projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1666b00
)
sv_binutils: consider only SVP64 instructions
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sat, 13 Aug 2022 19:06:26 +0000
(22:06 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 14 Aug 2022 19:07:43 +0000
(22:07 +0300)
src/openpower/sv/sv_binutils.py
patch
|
blob
|
history
diff --git
a/src/openpower/sv/sv_binutils.py
b/src/openpower/sv/sv_binutils.py
index f14b63a6a3404c3d777be4a43ed35cfa8749c228..e9f4feb86023e1884475a5741b4f85bd00df9475 100644
(file)
--- 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)