From def3e1163228304604a27b24aec45688dcfb04b8 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 17 Aug 2022 22:13:11 +0300 Subject: [PATCH] power_insn: support function property --- src/openpower/decoder/power_insn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index e0af08d2..824aff14 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -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 -- 2.30.2