* [Qemu-devel] [PATCH] TCG fixes for target-cris
@ 2008-09-05 12:41 Aurelien Jarno
2008-09-05 13:45 ` Edgar E. Iglesias
0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2008-09-05 12:41 UTC (permalink / raw)
To: qemu-devel; +Cc: Edgar E. Iglesias
This patch fixes TCG errors reported on the CRIS target when TCG_DEBUG
is enabled.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
target-cris/translate.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-cris/translate.c b/target-cris/translate.c
index c43992e..7666cba 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -1268,7 +1268,7 @@ static inline void t_gen_sext(TCGv d, TCGv s, int size)
tcg_gen_ext8s_i32(d, s);
else if (size == 2)
tcg_gen_ext16s_i32(d, s);
- else if(d != s)
+ else if(GET_TCGV(d) != GET_TCGV(s))
tcg_gen_mov_tl(d, s);
}
@@ -1278,7 +1278,7 @@ static inline void t_gen_zext(TCGv d, TCGv s, int size)
tcg_gen_ext8u_i32(d, s);
else if (size == 2)
tcg_gen_ext16u_i32(d, s);
- else if (d != s)
+ else if (GET_TCGV(d) != GET_TCGV(s))
tcg_gen_mov_tl(d, s);
}
--
1.5.6.5
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] TCG fixes for target-cris
2008-09-05 12:41 [Qemu-devel] [PATCH] TCG fixes for target-cris Aurelien Jarno
@ 2008-09-05 13:45 ` Edgar E. Iglesias
0 siblings, 0 replies; 2+ messages in thread
From: Edgar E. Iglesias @ 2008-09-05 13:45 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: Edgar E. Iglesias, qemu-devel
On Fri, Sep 05, 2008 at 02:41:01PM +0200, Aurelien Jarno wrote:
> This patch fixes TCG errors reported on the CRIS target when TCG_DEBUG
> is enabled.
Thanks!
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Acked-by: Edgar E. Iglesias <edgar@axis.com>
> ---
> target-cris/translate.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/target-cris/translate.c b/target-cris/translate.c
> index c43992e..7666cba 100644
> --- a/target-cris/translate.c
> +++ b/target-cris/translate.c
> @@ -1268,7 +1268,7 @@ static inline void t_gen_sext(TCGv d, TCGv s, int size)
> tcg_gen_ext8s_i32(d, s);
> else if (size == 2)
> tcg_gen_ext16s_i32(d, s);
> - else if(d != s)
> + else if(GET_TCGV(d) != GET_TCGV(s))
> tcg_gen_mov_tl(d, s);
> }
>
> @@ -1278,7 +1278,7 @@ static inline void t_gen_zext(TCGv d, TCGv s, int size)
> tcg_gen_ext8u_i32(d, s);
> else if (size == 2)
> tcg_gen_ext16u_i32(d, s);
> - else if (d != s)
> + else if (GET_TCGV(d) != GET_TCGV(s))
> tcg_gen_mov_tl(d, s);
> }
>
> --
> 1.5.6.5
>
>
> --
> .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
> : :' : Debian developer | Electrical Engineer
> `. `' aurel32@debian.org | aurelien@aurel32.net
> `- people.debian.org/~aurel32 | www.aurel32.net
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-05 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 12:41 [Qemu-devel] [PATCH] TCG fixes for target-cris Aurelien Jarno
2008-09-05 13:45 ` 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).