oppc: skip bogus sync instruction
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:09:45 +0000 (22:09 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:08 +0000 (22:10 +0300)
src/openpower/oppc/__main__.py

index ecf6aa0b67c593181dc030205811a6769722507a..e3a12f9633a1cb491e0b26b076681721865399f7 100644 (file)
@@ -17,6 +17,8 @@ lexer = pc_lexer.IndentLexer(debug=False)
 parser = pc_parser.Parser(lexer=lexer)
 db = Database(find_wiki_dir())
 for insn in db:
+    if insn.name == "sync":
+        continue
     try:
         tree = parser.parse(code="\n".join(insn.pcode))
         for (level, line) in pc_code.code(insn=insn, root=tree):