power_insn: support function property
authorDmitry Selyutin <ghostmansd@gmail.com>
Wed, 17 Aug 2022 19:13:11 +0000 (22:13 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Wed, 17 Aug 2022 19:13:11 +0000 (22:13 +0300)
src/openpower/decoder/power_insn.py

index e0af08d2db600a0175e77971437b2bc4f528abec..824aff147a05cb06859914bda01f73f7a93891cc 100644 (file)
@@ -440,6 +440,10 @@ class Instruction:
 
         return FieldsOpcode(fields)
 
+    @property
+    def function(self):
+        return self.ppc.unit
+
     @property
     def in1(self):
         return self.ppc.in1