qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64.
@ 2011-11-01 22:06 Richard Henderson
  2011-11-01 22:06 ` [Qemu-devel] [PATCH 2/2] tcg: Fix whitespace in tcg-op.h Richard Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Richard Henderson @ 2011-11-01 22:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, agraf

The error being caused by the failure to copy the other half of
the input to the output after having narrowed the deposit operation.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/tcg-op.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index 24ec7fc..8637fe8 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -2090,6 +2090,7 @@ static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1,
 
 #if TCG_TARGET_REG_BITS == 32
     if (ofs >= 32) {
+        tcg_gen_mov_i32(TCGV_LOW(ret), TCGV_LOW(arg1));
         tcg_gen_deposit_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1),
                             TCGV_LOW(arg2), ofs - 32, len);
         return;
@@ -2097,6 +2098,7 @@ static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1,
     if (ofs + len <= 32) {
         tcg_gen_deposit_i32(TCGV_LOW(ret), TCGV_LOW(arg1),
                             TCGV_LOW(arg2), ofs, len);
+        tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1));
         return;
     }
 #endif
-- 
1.7.6.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PATCH 2/2] tcg: Fix whitespace in tcg-op.h.
  2011-11-01 22:06 [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64 Richard Henderson
@ 2011-11-01 22:06 ` Richard Henderson
  2011-11-01 22:17 ` [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64 malc
  2011-11-02 17:30 ` Alexander Graf
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2011-11-01 22:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, agraf

Removing the only tabs in the file.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/tcg-op.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index 8637fe8..82e04e7 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -2042,8 +2042,8 @@ static inline void tcg_gen_rotri_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
 }
 
 static inline void tcg_gen_deposit_i32(TCGv_i32 ret, TCGv_i32 arg1,
-				       TCGv_i32 arg2, unsigned int ofs,
-				       unsigned int len)
+                                       TCGv_i32 arg2, unsigned int ofs,
+                                       unsigned int len)
 {
     uint32_t mask;
     TCGv_i32 t1;
@@ -2073,8 +2073,8 @@ static inline void tcg_gen_deposit_i32(TCGv_i32 ret, TCGv_i32 arg1,
 }
 
 static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1,
-				       TCGv_i64 arg2, unsigned int ofs,
-				       unsigned int len)
+                                       TCGv_i64 arg2, unsigned int ofs,
+                                       unsigned int len)
 {
     uint64_t mask;
     TCGv_i64 t1;
-- 
1.7.6.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64.
  2011-11-01 22:06 [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64 Richard Henderson
  2011-11-01 22:06 ` [Qemu-devel] [PATCH 2/2] tcg: Fix whitespace in tcg-op.h Richard Henderson
@ 2011-11-01 22:17 ` malc
  2011-11-02 17:30 ` Alexander Graf
  2 siblings, 0 replies; 4+ messages in thread
From: malc @ 2011-11-01 22:17 UTC (permalink / raw)
  To: Richard Henderson; +Cc: blauwirbel, qemu-devel, agraf

On Tue, 1 Nov 2011, Richard Henderson wrote:

> The error being caused by the failure to copy the other half of
> the input to the output after having narrowed the deposit operation.

Thanks, applied.

> 
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
>  tcg/tcg-op.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
> index 24ec7fc..8637fe8 100644
> --- a/tcg/tcg-op.h
> +++ b/tcg/tcg-op.h
> @@ -2090,6 +2090,7 @@ static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1,
>  
>  #if TCG_TARGET_REG_BITS == 32
>      if (ofs >= 32) {
> +        tcg_gen_mov_i32(TCGV_LOW(ret), TCGV_LOW(arg1));
>          tcg_gen_deposit_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1),
>                              TCGV_LOW(arg2), ofs - 32, len);
>          return;
> @@ -2097,6 +2098,7 @@ static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1,
>      if (ofs + len <= 32) {
>          tcg_gen_deposit_i32(TCGV_LOW(ret), TCGV_LOW(arg1),
>                              TCGV_LOW(arg2), ofs, len);
> +        tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1));
>          return;
>      }
>  #endif
> 

-- 
mailto:av1474@comtv.ru

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64.
  2011-11-01 22:06 [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64 Richard Henderson
  2011-11-01 22:06 ` [Qemu-devel] [PATCH 2/2] tcg: Fix whitespace in tcg-op.h Richard Henderson
  2011-11-01 22:17 ` [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64 malc
@ 2011-11-02 17:30 ` Alexander Graf
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2011-11-02 17:30 UTC (permalink / raw)
  To: Richard Henderson; +Cc: blauwirbel, qemu-devel

Richard Henderson wrote:
> The error being caused by the failure to copy the other half of
> the input to the output after having narrowed the deposit operation.
>   

Thanks, this makes my ppc32 host work again :)

Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-02 17:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 22:06 [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64 Richard Henderson
2011-11-01 22:06 ` [Qemu-devel] [PATCH 2/2] tcg: Fix whitespace in tcg-op.h Richard Henderson
2011-11-01 22:17 ` [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64 malc
2011-11-02 17:30 ` Alexander Graf

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