Skip to content
Snippets Groups Projects
Commit c7bb3095 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

mcpu: Specify actual received type on opcode issue


This helped me debug an issue with opcodes.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent e50d8412
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,7 @@ class Processor(object):
"""
if not isinstance(op, opcodes.OpCode):
raise errors.ProgrammerError("Non-opcode instance passed"
" to ExecOpcode")
" to ExecOpcode (%s)" % type(op))
lu_class = self.DISPATCH_TABLE.get(op.__class__, None)
if lu_class is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment