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:
8f9637e
)
power_insn: do not panic upon database query
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Fri, 9 Sep 2022 21:52:47 +0000
(
00:52
+0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sat, 10 Sep 2022 05:35:38 +0000
(08:35 +0300)
src/openpower/decoder/power_insn.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/power_insn.py
b/src/openpower/decoder/power_insn.py
index a27e48eb1b6c19f3f53af2716003ffd2313f26bc..add1f85b750e00f93392c27f3d270d6120ecfd5b 100644
(file)
--- a/
src/openpower/decoder/power_insn.py
+++ b/
src/openpower/decoder/power_insn.py
@@
-1043,7
+1043,7
@@
class WordInstruction(Instruction):
blob = " ".join(map(lambda byte: f"{byte:02x}", blob))
blob += " "
- record =
self.record(db=db)
+ record =
db[self]
if record is None:
yield f"{blob}.long 0x{integer:08x}"
return
@@
-1498,7
+1498,7
@@
class SVP64Instruction(PrefixedInstruction):
blob_prefix = blob(int(self.prefix))
blob_suffix = blob(int(self.suffix))
- record =
self.record(db=db)
+ record =
db[self]
if record is None or record.svp64 is None:
yield f"{blob_prefix}.long 0x{int(self.prefix):08x}"
yield f"{blob_suffix}.long 0x{int(self.suffix):08x}"