comment out mcrxr
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 23 Dec 2020 23:46:28 +0000 (23:46 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 23 Dec 2020 23:46:28 +0000 (23:46 +0000)
openpower/opcode_regs_deduped.mdwn
openpower/sv_analysis.py

index edc49125f0e95554ba8294d111cb8fa763ed806c..0dd0f6c8c81bddc29237f8c1456458d1eecd2f4d 100644 (file)
@@ -248,8 +248,6 @@ major.csv | 16 | bc | B-Form |
 [[!table  data="""
 CSV | opcode | asm | form |
 minor_19.csv | 0b0000000000 | mcrf | XL-Form |
-minor_31.csv | 0b1000000000 | mcrxr | X-Form |
-minor_31.csv | 0b1001000000 | mcrxrx | X-Form |
 minor_63l.csv | 0b000000010 | 2/0=mcrfs | -Form |
 minor_63l.csv | 0b011000001 | 1/6=mtfsb1 | -Form |
 minor_63l.csv | 0b011000010 | 2/6=mtfsb0 | -Form |
@@ -730,8 +728,6 @@ sthux | 2P | EXTRA2 | d:RS | d:RA | s:RB |  | RA_OR_ZERO | RB | RS | NONE | NONE
 [[!table  data="""
 insn | Ptype | Etype | 0 | 1 | 2 | 3 |
 mcrf | 2P | EXTRA3 | d:BF | s:BFA |  |  | NONE | NONE | NONE | NONE | BFA | BF |
-mcrxr | 2P | EXTRA3 | TODO |  |  |  |  |  |  |  |  |  |
-mcrxrx | 2P | EXTRA3 | TODO |  |  |  |  |  |  |  |  |  |
 2/0=mcrfs | 2P | EXTRA3 | TODO |  |  |  | NONE | NONE | NONE | NONE | 0 | 1 |
 1/6=mtfsb1 | 2P | EXTRA3 | TODO |  |  |  | NONE | NONE | NONE | NONE | 0 | 0 |
 2/6=mtfsb0 | 2P | EXTRA3 | TODO |  |  |  | NONE | NONE | NONE | NONE | 0 | 0 |
index 109e69222422452553d08ef75c4dea4b7422e032..e716b807b61b7afe06b31c9d1dd782380aa86883 100644 (file)
@@ -197,7 +197,11 @@ def process_csvs():
         for row in csv:
             if blank_key(row):
                 continue
-            insns[row['comment']] = row # accumulate csv data by instruction
+            insn_name = row['comment']
+            # skip instructions that are not suitable
+            if insn_name in ['mcrxr', 'mcrxrx']:
+                continue
+            insns[insn_name] = row # accumulate csv data by instruction
             dkey = create_key(row)
             key = tuple(dkey.values())
             # print("key=", key)
@@ -205,7 +209,7 @@ def process_csvs():
             primarykeys.add(key)
             if key not in bykey:
                 bykey[key] = []
-            bykey[key].append((csvname, row['opcode'], row['comment'],
+            bykey[key].append((csvname, row['opcode'], insn_name,
                                row['form'].upper() + '-Form'))
 
             # detect immediates, collate them (useful info)