From 816b86b3d06dfa3ca7286c7a435ec8a592bee380 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 29 Aug 2022 21:16:18 +0300 Subject: [PATCH] power_insn: rename unit field to function --- src/openpower/decoder/power_insn.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 72253cc0..df5a5cb6 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -188,7 +188,7 @@ class PPCRecord: comment: str flags: Flags = Flags() comment2: str = "" - unit: _Function = _Function.NONE + function: _Function = _Function.NONE intop: _MicrOp = _MicrOp.OP_ILLEGAL in1: _In1Sel = _In1Sel.RA in2: _In2Sel = _In2Sel.NONE @@ -205,6 +205,7 @@ class PPCRecord: unofficial: bool = False __KEYMAP = { + "unit": "function", "internal op": "intop", "CR in": "cr_in", "CR out": "cr_out", @@ -451,7 +452,7 @@ class Record: @property def function(self): - return self.ppc.unit + return self.ppc.function @property def in1(self): -- 2.30.2