add comments (links to URLs) into power_insns.py for RM modes
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 17:28:50 +0000 (18:28 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 17:28:50 +0000 (18:28 +0100)
src/openpower/decoder/power_insn.py

index c54c5ca031e3726bf553483ccc2fd8582b1bc261..1dc99c4ca02064c1b3c00b963c70a0c43dffefc6 100644 (file)
@@ -1298,6 +1298,10 @@ class BaseRM(_Mapping):
                 yield f"{indent}{', '.join(map(str, members))}"
 
 
+# ********************
+# Normal mode
+# https://libre-soc.org/openpower/sv/normal/
+
 class NormalLDSTBaseRM(BaseRM):
     def specifiers(self, record):
         widths = {
@@ -1461,6 +1465,10 @@ class NormalRM(NormalBaseRM):
     prrc0: NormalPredResultRc0RM
 
 
+# ********************
+# LD/ST Immediate mode
+# https://libre-soc.org/openpower/sv/ldst/
+
 class LDSTImmBaseRM(NormalLDSTBaseRM):
     pass
 
@@ -1551,6 +1559,10 @@ class LDSTImmRM(LDSTImmBaseRM):
     prrc0: LDSTImmPredResultRc0RM
 
 
+# ********************
+# LD/ST Indexed mode
+# https://libre-soc.org/openpower/sv/ldst/
+
 class LDSTIdxBaseRM(NormalLDSTBaseRM):
     pass
 
@@ -1636,6 +1648,11 @@ class LDSTIdxRM(LDSTIdxBaseRM):
     prrc0: LDSTIdxPredResultRc0RM
 
 
+
+# ********************
+# CR ops mode
+# https://libre-soc.org/openpower/sv/cr_ops/
+
 class CROpBaseRM(BaseRM):
     pass
 
@@ -1730,6 +1747,11 @@ class CROpRM(CROpBaseRM):
     ff5: CROpFailFirst5RM
 
 
+# ********************
+# Branches mode
+# https://libre-soc.org/openpower/sv/branches/
+
+
 class BranchBaseRM(BaseRM):
     ALL: BaseRM[4]
     SNZ: BaseRM[5]