drat have to use RCOE.RC not RCOE.RC_OE for now otherwise
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 1 Sep 2022 15:54:39 +0000 (16:54 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 1 Sep 2022 15:54:39 +0000 (16:54 +0100)
all CSV entries have to change

src/openpower/decoder/power_decoder2.py
src/openpower/decoder/power_enums.py
src/openpower/decoder/power_insn.py

index cedb35484dda677ff10b1119f3776b2f76485747..fdad739231d5aa1413c4f2d65b296141be12ce63 100644 (file)
@@ -539,7 +539,7 @@ class DecodeRC(Elaboratable):
 
         # select Record bit out field
         with m.Switch(self.sel_in):
-            with m.Case(RCOE.RC_OE, RCOE.RC_ONLY):
+            with m.Case(RCOE.RC, RCOE.RC_ONLY):
                 comb += self.rc_out.data.eq(self.dec.Rc)
                 comb += self.rc_out.ok.eq(1)
             with m.Case(RCOE.ONE):
@@ -605,7 +605,7 @@ class DecodeOE(Elaboratable):
             with m.Default():
                 # select OE bit out field
                 with m.Switch(self.sel_in):
-                    with m.Case(RCOE.RC_OE):
+                    with m.Case(RCOE.RC):
                         comb += self.oe_out.data.eq(self.dec.OE)
                         comb += self.oe_out.ok.eq(1)
 
index 693a4879b1bff80ffe3fbde83d45c732f25e5a22..7bb927fb2084a204d88314bb8499bf5ffa55587b 100644 (file)
@@ -674,7 +674,7 @@ class LDSTMode(Enum):
 class RCOE(Enum):
     NONE = 0
     ONE = 1
-    RC_OE = 2    # includes OE
+    RC = 2    # includes OE
     RC_ONLY = 3  # does not include OE
 
 
index 782175120d676448f55955b141d68e18ef586d96..43cf10a6583f18aae2bf9e9b609840a6256f22d4 100644 (file)
@@ -717,7 +717,7 @@ class Database:
                     svp64 = svp64db.get(identifier)
                     if ppc.rc is _RCOE.ONE:
                         variants = {name:True for name in ppc.names}
-                    elif ppc.rc in [_RCOE.RC_OE, _RCOE.RC_ONLY]:
+                    elif ppc.rc in [_RCOE.RC, _RCOE.RC_ONLY]:
                         variants = {name:False for name in ppc.names}
                         variants.update({f"{name}.":True for name in ppc.names})
                     else: