sv_binutils: discard VHDL stuff in comments
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 9 Jan 2022 16:36:35 +0000 (16:36 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 9 Jan 2022 16:36:40 +0000 (16:36 +0000)
src/openpower/sv/sv_binutils.py

index bd3faa2d7f9cf80d975e0263254425b086caf1a9..e29a01c18fa476bb3a506eab0e794039af68d1f7 100644 (file)
@@ -319,7 +319,7 @@ FIELDS = {field.name:field for field in _dataclasses.fields(Entry)}
 def parse(path, opcode_cls):
     for entry in ISA.get_svp64_csv(path):
         # skip instructions that are not suitable
-        name = entry["name"] = entry.pop("comment")
+        name = entry["name"] = entry.pop("comment").split("=")[-1]
         if name.startswith("l") and name.endswith("br"):
             continue
         if name in {"mcrxr", "mcrxrx", "darn"}: