From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIk78-0002eq-R3 for qemu-devel@nongnu.org; Tue, 25 Oct 2011 12:44:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIk73-0003Iw-AE for qemu-devel@nongnu.org; Tue, 25 Oct 2011 12:44:34 -0400 Received: from [188.134.19.124] (port=56693 helo=octofox.metropolis) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIk72-0003If-U6 for qemu-devel@nongnu.org; Tue, 25 Oct 2011 12:44:29 -0400 From: Max Filippov Date: Tue, 25 Oct 2011 20:44:20 +0400 Message-Id: <1319561060-6472-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH] target-xtensa: raise an exception for invalid and reserved opcodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Max Filippov This includes opcodes from disabled features and those marked reserved in the ISA. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 1688bb2..792eff1 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -2378,6 +2378,7 @@ static void disas_xtensa_insn(DisasContext *dc) invalid_opcode: qemu_log("INVALID(pc = %08x)\n", dc->pc); + gen_exception_cause(dc, ILLEGAL_INSTRUCTION_CAUSE); dc->pc = dc->next_pc; #undef HAS_OPTION } -- 1.7.6.4