From 5bcaaa4c5c237df3df6e08573168de8ef2311a3f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 2 Aug 2022 20:27:34 +0300 Subject: [PATCH] power_enums: introduce RegType enum --- src/openpower/decoder/power_enums.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 3886bab0..78015c36 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -300,6 +300,34 @@ class SVP64LDSTmode(Enum): UNITSTRIDE = 3 +class RegType(Enum): + GPR = 0 + RA = GPR + RB = GPR + RC = GPR + RS = GPR + RT = GPR + + FPR = 1 + FRA = FPR + FRB = FPR + FRC = FPR + FRS = FPR + FRT = FPR + + CR_REG = 2 + BF = CR_REG + BFA = CR_REG + + CR_BIT = 3 + BA = CR_BIT + BB = CR_BIT + BC = CR_BIT + BI = CR_BIT + BT = CR_BIT + BFT = CR_BIT + + # supported instructions: make sure to keep up-to-date with CSV files # just like everything else _insns = [ -- 2.30.2