From: Dmitry Selyutin Date: Mon, 29 Aug 2022 18:16:18 +0000 (+0300) Subject: power_insn: rename unit field to function X-Git-Tag: sv_maxu_works-initial~12 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=816b86b3d06dfa3ca7286c7a435ec8a592bee380;p=openpower-isa.git power_insn: rename unit field to function --- 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):