add nop support to ISACaller
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 May 2021 09:59:16 +0000 (10:59 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 May 2021 09:59:16 +0000 (10:59 +0100)
src/openpower/decoder/isa/caller.py

index 5eef119c6aaf0db0a44739e29897c243d79f0c36..0ab052ce921903f1c8198c4a9ea6fdda598d9a37 100644 (file)
@@ -1023,6 +1023,12 @@ class ISACaller:
                   (name, asmop, self.pc.CIA.value))
             return
 
+        # nop has to be supported, we could let the actual op calculate
+        # but PowerDecoder has a pattern for nop
+        if name is 'nop':
+            self.update_pc_next()
+            return
+
         info = self.instrs[name]
         yield from self.prep_namespace(info.form, info.op_fields)