qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tci: Fix type of tci_read_label
@ 2012-11-19 20:43 Richard Henderson
  2012-11-19 21:29 ` Stefan Weil
  2012-11-24 21:00 ` Blue Swirl
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Henderson @ 2012-11-19 20:43 UTC (permalink / raw)
  To: qemu-devel; +Cc: Blue Swirl, Stefan Weil

Fixes the pointer truncation that was occurring for branches.

Cc: Stefan Weil <sw@weilnetz.de>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tci.c b/tci.c
index 9c87c8e..54cf1d9 100644
--- a/tci.c
+++ b/tci.c
@@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr)
 }
 #endif
 
-static target_ulong tci_read_label(uint8_t **tb_ptr)
+static tcg_target_ulong tci_read_label(uint8_t **tb_ptr)
 {
-    target_ulong label = tci_read_i(tb_ptr);
+    tcg_target_ulong label = tci_read_i(tb_ptr);
     assert(label != 0);
     return label;
 }
-- 
1.7.11.7

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

* Re: [Qemu-devel] [PATCH] tci: Fix type of tci_read_label
  2012-11-19 20:43 [Qemu-devel] [PATCH] tci: Fix type of tci_read_label Richard Henderson
@ 2012-11-19 21:29 ` Stefan Weil
  2012-11-24 21:00 ` Blue Swirl
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Weil @ 2012-11-19 21:29 UTC (permalink / raw)
  To: Richard Henderson; +Cc: Blue Swirl, qemu-devel

Am 19.11.2012 21:43, schrieb Richard Henderson:
> Fixes the pointer truncation that was occurring for branches.
>
> Cc: Stefan Weil<sw@weilnetz.de>
> Cc: Blue Swirl<blauwirbel@gmail.com>
> Signed-off-by: Richard Henderson<rth@twiddle.net>
> ---
>   tci.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tci.c b/tci.c
> index 9c87c8e..54cf1d9 100644
> --- a/tci.c
> +++ b/tci.c
> @@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr)
>   }
>   #endif
>
> -static target_ulong tci_read_label(uint8_t **tb_ptr)
> +static tcg_target_ulong tci_read_label(uint8_t **tb_ptr)
>   {
> -    target_ulong label = tci_read_i(tb_ptr);
> +    tcg_target_ulong label = tci_read_i(tb_ptr);
>       assert(label != 0);
>       return label;
>   }
>    

Thanks for fixing this.

Reviewed-by: Stefan Weil <sw@weilnetz.de>
Tested-by: Stefan Weil <sw@weilnetz.de>

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

* Re: [Qemu-devel] [PATCH] tci: Fix type of tci_read_label
  2012-11-19 20:43 [Qemu-devel] [PATCH] tci: Fix type of tci_read_label Richard Henderson
  2012-11-19 21:29 ` Stefan Weil
@ 2012-11-24 21:00 ` Blue Swirl
  1 sibling, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2012-11-24 21:00 UTC (permalink / raw)
  To: Richard Henderson; +Cc: Stefan Weil, qemu-devel

Thanks, applied.

On Mon, Nov 19, 2012 at 8:43 PM, Richard Henderson <rth@twiddle.net> wrote:
> Fixes the pointer truncation that was occurring for branches.
>
> Cc: Stefan Weil <sw@weilnetz.de>
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
>  tci.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tci.c b/tci.c
> index 9c87c8e..54cf1d9 100644
> --- a/tci.c
> +++ b/tci.c
> @@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr)
>  }
>  #endif
>
> -static target_ulong tci_read_label(uint8_t **tb_ptr)
> +static tcg_target_ulong tci_read_label(uint8_t **tb_ptr)
>  {
> -    target_ulong label = tci_read_i(tb_ptr);
> +    tcg_target_ulong label = tci_read_i(tb_ptr);
>      assert(label != 0);
>      return label;
>  }
> --
> 1.7.11.7
>

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

end of thread, other threads:[~2012-11-24 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-19 20:43 [Qemu-devel] [PATCH] tci: Fix type of tci_read_label Richard Henderson
2012-11-19 21:29 ` Stefan Weil
2012-11-24 21:00 ` Blue Swirl

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