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:
f8498fc
)
power_insn: disassemble RA0 and RT0 correctly
extras
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Wed, 31 May 2023 21:05:08 +0000
(
00:05
+0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Thu, 1 Jun 2023 08:19:38 +0000
(11:19 +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 d480a3f3dac4073743c1b32cff8451d970a2057c..ca540386560906d0c6a538f648fa793741b714ce 100644
(file)
--- a/
src/openpower/decoder/power_insn.py
+++ b/
src/openpower/decoder/power_insn.py
@@
-1286,6
+1286,9
@@
class ExtendableOperand(DynamicOperand):
style=Style.NORMAL, prefix="", indent=""):
(vector, value, span) = self.sv_spec(insn=insn)
+ if (self.extra_reg.or_zero and (value == 0)):
+ prefix = ""
+
if style >= Style.VERBOSE:
mode = "vector" if vector else "scalar"
yield f"{indent}{self.name} ({mode})"