insndb/db: fix SVP64 instruction check
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 22 Jun 2023 19:10:56 +0000 (22:10 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:19 +0000 (19:26 +0000)
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