add svp64_instrs to power_svp64
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 28 Feb 2021 12:19:52 +0000 (12:19 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 28 Feb 2021 12:19:55 +0000 (12:19 +0000)
src/soc/decoder/power_svp64.py

index 5ef9c0c4185a6d9f9dca0925d1a2c2db75d3b817..43794ed7b186be8fbc20943798fe10f9b762ff13 100644 (file)
@@ -63,6 +63,7 @@ def decode_extra(rm, prefix=''):
 class SVP64RM:
     def __init__(self):
         self.instrs = {}
+        self.svp64_instrs = {}
         pth = find_wiki_dir()
         for fname in os.listdir(pth):
             if fname.startswith("RM") or fname.startswith("LDSTRM"):
@@ -140,6 +141,7 @@ class SVP64RM:
                 entry['SV_Ptype'] = 'P1'
             if entry['SV_Ptype'] == '2P':
                 entry['SV_Ptype'] = 'P2'
+            self.svp64_instrs[asmcode] = entry
 
         return v30b