insndb/db: fix SVP64 instruction check
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 22 Jun 2023 19:10:56 +0000 (22:10 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Fri, 23 Jun 2023 07:40:44 +0000 (10:40 +0300)
src/openpower/insndb/db.py

index b0411d25b0136fa7c6c382429ff45441d407ec95..0de00b10072ac4e528d946d64675ebe183e2672f 100644 (file)
@@ -211,7 +211,7 @@ def main():
     for (command, (visitor, helper)) in commands.items():
         parser = main_subparser.add_parser(command, help=helper)
         if issubclass(visitor, InstructionVisitor):
-            if command in ("extras",):
+            if issubclass(visitor, SVP64InstructionVisitor):
                 arg_cls = SVP64Instruction
             else:
                 arg_cls = Instruction