qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] MIPS: Avoid tcg internal error


From: Edgar E. Iglesias
Subject: [Qemu-devel] [PATCH] MIPS: Avoid tcg internal error
Date: Wed, 29 Oct 2008 17:03:55 +0100
User-agent: Mutt/1.5.16 (2007-06-09)

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 <address@hidden>
Date:   Wed Oct 29 13:54:48 2008 +0100

    MIPS: Initialize local temps before passing them to helpers.
    
    Signed-off-by: Edgar E. Iglesias <address@hidden>

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) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]