def _missing_(cls, value):
return {"1P": SVPtype.P1, "2P": SVPtype.P2}[value]
+ def __repr__(self):
+ return {
+ SVPtype.NONE: "NONE",
+ SVPtype.P1: "1P",
+ SVPtype.P2: "2P",
+ }[self]
+
@unique
class SVEtype(Enum):
EXTRA2 = 1
EXTRA3 = 2
+ def __repr__(self):
+ return self.name
+
@unique
class SVExtra(Enum):
FRS = FPR
FRT = FPR
- CR_REG = 2
+ CR_REG = 2 # actually CR Field. the CR register is 32-bit.
BF = CR_REG
BFA = CR_REG
- CR_BIT = 3
+ CR_BIT = 3 # refers to one bit of the 32-bit CR register
BA = CR_BIT
BB = CR_BIT
BC = CR_BIT