From c7bb3095974c899b8b57fd6b21b4392f7d4dacf4 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Thu, 11 Aug 2011 16:37:30 +0200 Subject: [PATCH] mcpu: Specify actual received type on opcode issue This helped me debug an issue with opcodes. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/mcpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mcpu.py b/lib/mcpu.py index 33a909224..4fcd6fdcb 100644 --- a/lib/mcpu.py +++ b/lib/mcpu.py @@ -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: -- GitLab