power_insn: support branch stub
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 6 Sep 2022 09:01:10 +0000 (12:01 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 6 Sep 2022 11:44:56 +0000 (14:44 +0300)
src/openpower/decoder/power_insn.py

index 568542fb9f9f4d9cf2446e099978eeb0c7198a01..2b2318955f60d35b003c563e1e535ba57e7233bb 100644 (file)
@@ -1296,7 +1296,10 @@ class SVP64Instruction(PrefixedInstruction):
             if isinstance(mode, cls):
                 return (mode, desc)
 
-        raise NotImplementedError
+        if record.svp64.mode is _SVMode.BRANCH:
+            return (self.prefix.rm.mode, "branch")
+
+        raise ValueError(self)
 
     def disassemble(self, db, byteorder="little", verbose=False):
         integer_prefix = int(self.prefix)