Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvDWa-0006HV-2n for qemu-devel@nongnu.org; Wed, 29 Oct 2008 12:04:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvDWY-0006G1-JX for qemu-devel@nongnu.org; Wed, 29 Oct 2008 12:03:59 -0400 Received: from [199.232.76.173] (port=60117 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvDWY-0006Fq-9v for qemu-devel@nongnu.org; Wed, 29 Oct 2008 12:03:58 -0400 Received: from bart.se.axis.com ([195.60.68.10]:56313) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KvDWX-0001vu-MG for qemu-devel@nongnu.org; Wed, 29 Oct 2008 12:03:57 -0400 Received: from bart.se.axis.com (bart.se.axis.com [127.0.0.1]) by bart.se.axis.com (Postfix) with ESMTP id D394664081 for ; Wed, 29 Oct 2008 17:03:55 +0100 (CET) Received: from axis.com (edgar.se.axis.com [10.93.151.1]) by bart.se.axis.com (Postfix) with ESMTP id BA0776407B for ; Wed, 29 Oct 2008 17:03:55 +0100 (CET) Date: Wed, 29 Oct 2008 17:03:55 +0100 From: "Edgar E. Iglesias" Message-ID: <20081029160355.GG20499@edgar.se.axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] MIPS: Avoid tcg internal error Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ths@networkno.de Cc: qemu-devel@nongnu.org Hello Thiemo, I've got this in my tree, I needed it to avoid a tcg internal error while booting mips linux. Feel free to apply it if it's correct. Thanks commit d30651cff0b75ab584ba8401e87b39738d134149 Author: Edgar E. Iglesias Date: Wed Oct 29 13:54:48 2008 +0100 MIPS: Initialize local temps before passing them to helpers. Signed-off-by: Edgar E. Iglesias diff --git a/target-mips/translate.c b/target-mips/translate.c index ec375e1..3c18235 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -5213,6 +5213,7 @@ static void gen_mftr(CPUState *env, DisasContext *ctx, int rt, int rd, (env->mvp->CP0_MVPConf0 & (0xff << CP0MVPC0_PTC))) tcg_gen_movi_tl(t0, -1); else if (u == 0) { + tcg_gen_movi_tl(t0, 0); switch (rt) { case 2: switch (sel) { @@ -8163,6 +8164,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) #ifndef CONFIG_USER_ONLY if (!env->user_mode_only) { TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL); + tcg_gen_movi_tl(t0, 0); op2 = MASK_MFMC0(ctx->opcode); switch (op2) {