From 569459d2e3971e928408e40f4676d77255a5531a Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 4 Sep 2022 12:02:41 +0300 Subject: [PATCH] power_insn: switch back to target_addr --- src/openpower/decoder/power_insn.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 085414c1..e6cf2a45 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -469,7 +469,7 @@ class Operands: yield str(int(value)) @_dataclasses.dataclass(eq=True, frozen=True) - class DynamicOperandIFormLI(DynamicOperand): + class DynamicOperandTargetAddrLI(DynamicOperand): @property def name(self): return "LI" @@ -489,7 +489,7 @@ class Operands: yield hex(int(_selectconcat(value, _SelectableInt(value=0b00, bits=2)))) - class DynamicOperandBFormBD(DynamicOperand): + class DynamicOperandTargetAddrBD(DynamicOperand): @property def name(self): return "BD" @@ -533,14 +533,14 @@ class Operands: def __init__(self, insn, iterable): branches = { - "b": {"LI": self.__class__.DynamicOperandIFormLI}, - "ba": {"LI": self.__class__.DynamicOperandIFormLI}, - "bl": {"LI": self.__class__.DynamicOperandIFormLI}, - "bla": {"LI": self.__class__.DynamicOperandIFormLI}, - "bc": {"BD": self.__class__.DynamicOperandBFormBD}, - "bca": {"BD": self.__class__.DynamicOperandBFormBD}, - "bcl": {"BD": self.__class__.DynamicOperandBFormBD}, - "bcla": {"BD": self.__class__.DynamicOperandBFormBD}, + "b": {"target_addr": self.__class__.DynamicOperandTargetAddrLI}, + "ba": {"target_addr": self.__class__.DynamicOperandTargetAddrLI}, + "bl": {"target_addr": self.__class__.DynamicOperandTargetAddrLI}, + "bla": {"target_addr": self.__class__.DynamicOperandTargetAddrLI}, + "bc": {"target_addr": self.__class__.DynamicOperandTargetAddrBD}, + "bca": {"target_addr": self.__class__.DynamicOperandTargetAddrBD}, + "bcl": {"target_addr": self.__class__.DynamicOperandTargetAddrBD}, + "bcla": {"target_addr": self.__class__.DynamicOperandTargetAddrBD}, } operands = [] -- 2.30.2