insndb/core: introduce pair operand base class
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 9 Sep 2023 17:46:15 +0000 (20:46 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 9 Sep 2023 17:46:15 +0000 (20:46 +0300)
src/openpower/insndb/core.py

index 5c8945cf52a4c22939862f5e12d04bdb14686bb8..29fec72556fabe9542beeb139c2b7a8bf8b06dcd 100644 (file)
@@ -1376,7 +1376,11 @@ class GPROperand(SimpleRegisterOperand):
             style=style, indent=indent)
 
 
-class GPRPairOperand(GPROperand):
+class PairOperand(DynamicOperand):
+    pass
+
+
+class GPRPairOperand(GPROperand, PairOperand):
     pass
 
 
@@ -1391,7 +1395,7 @@ class FPROperand(SimpleRegisterOperand):
             style=style, indent=indent)
 
 
-class FPRPairOperand(FPROperand):
+class FPRPairOperand(FPROperand, PairOperand):
     pass