From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lm8s2-0002x4-N8 for qemu-devel@nongnu.org; Tue, 24 Mar 2009 11:48:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lm8rj-0002if-76 for qemu-devel@nongnu.org; Tue, 24 Mar 2009 11:48:42 -0400 Received: from [199.232.76.173] (port=33135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lm8rf-0002gn-2J for qemu-devel@nongnu.org; Tue, 24 Mar 2009 11:48:31 -0400 Received: from mel.act-europe.fr ([212.99.106.210]:52855) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lm8re-0003ga-Js for qemu-devel@nongnu.org; Tue, 24 Mar 2009 11:48:30 -0400 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 721CD29006A for ; Tue, 24 Mar 2009 16:48:07 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rjYwWgWj-nni for ; Tue, 24 Mar 2009 16:48:07 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) by mel.act-europe.fr (Postfix) with ESMTP id 3766D290050 for ; Tue, 24 Mar 2009 16:48:07 +0100 (CET) From: Tristan Gingold Date: Tue, 24 Mar 2009 16:47:47 +0100 Message-Id: <1237909687-31711-6-git-send-email-gingold@adacore.com> In-Reply-To: <1237909687-31711-5-git-send-email-gingold@adacore.com> References: <1237909687-31711-1-git-send-email-gingold@adacore.com> <1237909687-31711-2-git-send-email-gingold@adacore.com> <1237909687-31711-3-git-send-email-gingold@adacore.com> <1237909687-31711-4-git-send-email-gingold@adacore.com> <1237909687-31711-5-git-send-email-gingold@adacore.com> Subject: [Qemu-devel] [PATCH 05/25] bug fix: avoid nop to override next instruction Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org While searching PC, always store the pc of a new instruction. Instructions that didn't generate tcg code (such as nop) prevented the next one to be referenced. Signed-off-by: Tristan Gingold --- target-alpha/translate.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index dff3f1d..5fe037f 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2380,10 +2380,10 @@ static always_inline void gen_intermediate_code_internal (CPUState *env, lj++; while (lj < j) gen_opc_instr_start[lj++] = 0; - gen_opc_pc[lj] = ctx.pc; - gen_opc_instr_start[lj] = 1; - gen_opc_icount[lj] = num_insns; } + gen_opc_pc[lj] = ctx.pc; + gen_opc_instr_start[lj] = 1; + gen_opc_icount[lj] = num_insns; } if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO)) gen_io_start(); -- 1.6.2