add more conversion types to sv analysis
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Nov 2020 21:11:29 +0000 (21:11 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Nov 2020 21:11:29 +0000 (21:11 +0000)
openpower/opcode_regs_deduped.mdwn
openpower/sv_analysis.py

index e3665a109ccdc707e469d5ea5ea61e3bd9aaaa51..a1f701458809c67e68d43c2be4bc50901d7a2ecd 100644 (file)
@@ -1,15 +1,15 @@
 # map to old SV Prefix
 
 [[!table  data="""
-LDST-1R-1W-imm | - |
-LDST-1R-1W-imm | - |
-LDST-1R-2W-imm | - |
-LDST-1R-2W-imm | - |
-LDST-2R-imm | - |
-LDST-2R-imm | - |
-LDST-2R-1W-imm | - |
-LDST-2R-1W-imm | - |
-LDST-2R-1W-imm | - |
+LDST-1R-1W-imm | I |
+LDST-1R-1W-imm | I |
+LDST-1R-2W-imm | I |
+LDST-1R-2W-imm | I |
+LDST-2R-imm | S |
+LDST-2R-imm | S |
+LDST-2R-1W-imm | S |
+LDST-2R-1W-imm | S |
+LDST-2R-1W-imm | S |
 LDST-2R-2W-imm | - |
 LDST-3R-imm | - |
 LDST-3R-CRo | - |
index 57f5153d9902fd4fd09cb6d97033552319b6d54f..40e055140b2f6a9ba8ecdc43653871740c585051 100644 (file)
@@ -194,6 +194,11 @@ def process_csvs():
               '1R-1W-CRo': 'R',
               '1R-1W': 'R',
               '1R-1W': 'R',
+              '1R-Imm': 'U',
+              'LDST-2R-imm': 'S',
+              'LDST-2R-1W-imm': 'S',
+              'LDST-1R-1W-imm': 'I',
+              'LDST-1R-2W-imm': 'I',
               }
     print ("# map to old SV Prefix")
     print ('')