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:
cdbe855
)
insndb/core: switch PPCMultiRecord to Tuple
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sat, 10 Jun 2023 18:16:42 +0000
(21:16 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sat, 10 Jun 2023 18:16:42 +0000
(21:16 +0300)
src/openpower/insndb/core.py
patch
|
blob
|
history
diff --git
a/src/openpower/insndb/core.py
b/src/openpower/insndb/core.py
index 2cd7d5fbaebfb2698954589242af70924f341a5a..367008e176a08ee09cfdd749e6ec36bd1dfad8e1 100644
(file)
--- a/
src/openpower/insndb/core.py
+++ b/
src/openpower/insndb/core.py
@@
-440,7
+440,7
@@
class PPCRecord(Dataclass):
return frozenset(self.comment.split("=")[-1].split("/"))
-class PPCMultiRecord(
tuple
):
+class PPCMultiRecord(
Tuple, datatype=PPCRecord
):
def __getattr__(self, attr):
if attr == "opcode":
if len(self) != 1: