power_insn: fix DOperandDX span
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:16 +0000 (19:51 +0100)
src/openpower/decoder/power_insn.py

index c7f856bc87894faae013819ef1ee2d9bb2975f74..f278de3548b9d4ffee4d5c36ed69b0dfd3886c3d 100644 (file)
@@ -1249,7 +1249,7 @@ class EXTSOperandDQ(EXTSOperand, ImmediateOperand):
 class DOperandDX(SignedOperand):
     @cached_property
     def span(self):
-        cls = lambda name: DynamicOperand(name=name)
+        cls = lambda name: DynamicOperand(record=self.record, name=name)
         operands = map(cls, ("d0", "d1", "d2"))
         spans = map(lambda operand: operand.span, operands)
         return sum(spans, tuple())