* [Qemu-devel] [PATCH] MIPS: Avoid tcg internal error
@ 2008-10-29 16:03 Edgar E. Iglesias
0 siblings, 0 replies; only message in thread
From: Edgar E. Iglesias @ 2008-10-29 16:03 UTC (permalink / raw)
To: ths; +Cc: qemu-devel
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 <edgar.iglesias@axis.com>
Date: Wed Oct 29 13:54:48 2008 +0100
MIPS: Initialize local temps before passing them to helpers.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
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) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-29 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 16:03 [Qemu-devel] [PATCH] MIPS: Avoid tcg internal error Edgar E. Iglesias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).