power_insn: fix DOperandDX span
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 15 Jan 2023 19:47:22 +0000 (22:47 +0300)
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())