--- /dev/null
+# SPDX-License-Identifier: LGPLv3+
+# Copyright (C) 2021 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
+# Funded by NLnet http://nlnet.nl
+
+from soc.decoder.power_enums import get_csv, find_wiki_dir
+import os
+
+# gets SVP64 ReMap information
+class SVP64RM:
+ def __init__(self):
+ self.instrs = {}
+ pth = find_wiki_dir()
+ for fname in os.listdir(pth):
+ if fname.startswith("RM") or fname.startswith("LDSTRM"):
+ for entry in get_csv(fname):
+ self.instrs[entry['insn']] = entry
+
+
+
from collections import OrderedDict
from soc.decoder.pseudo.pagereader import ISA
-from soc.decoder.power_enums import get_csv, find_wiki_dir
+from soc.decoder.power_svp64 import SVP64RM
# identifies register by type
return decode_bo(encoding)
-# gets SVP64 ReMap information
-class SVP64RM:
- def __init__(self):
- self.instrs = {}
- pth = find_wiki_dir()
- for fname in os.listdir(pth):
- if fname.startswith("RM") or fname.startswith("LDSTRM"):
- for entry in get_csv(fname):
- self.instrs[entry['insn']] = entry
-
# decodes svp64 assembly listings and creates EXT001 svp64 prefixes
class SVP64: