Received: from eggs.gnu.org ([2001:4830:134:3::10]:35291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEzrd-0002Sh-I6 for qemu-devel@nongnu.org; Thu, 29 Aug 2013 06:54:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEzrY-0003DC-OE for qemu-devel@nongnu.org; Thu, 29 Aug 2013 06:54:09 -0400 Received: from hall.aurel32.net ([2001:470:1f0b:4a8::1]:37970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEzrY-0003D4-H0 for qemu-devel@nongnu.org; Thu, 29 Aug 2013 06:54:04 -0400 Date: Thu, 29 Aug 2013 12:53:58 +0200 From: Aurelien Jarno Message-ID: <20130829105358.GN5908@ohm.aurel32.net> References: <1377190729-14008-1-git-send-email-rth@twiddle.net> <1377190729-14008-11-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1377190729-14008-11-git-send-email-rth@twiddle.net> Subject: Re: [Qemu-devel] [PATCH 10/18] tcg: Use uintptr_t in TCGHelperInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Thu, Aug 22, 2013 at 09:58:41AM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/tcg.c | 6 +++--- > tcg/tcg.h | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tcg/tcg.c b/tcg/tcg.c > index c6ab07f..c80aa3c 100644 > --- a/tcg/tcg.c > +++ b/tcg/tcg.c > @@ -625,7 +625,7 @@ void tcg_register_helper(void *func, const char *name) > s->helpers = realloc(s->helpers, n * sizeof(TCGHelperInfo)); > s->allocated_helpers = n; > } > - s->helpers[s->nb_helpers].func = (tcg_target_ulong)func; > + s->helpers[s->nb_helpers].func = (uintptr_t)func; > s->helpers[s->nb_helpers].name = name; > s->nb_helpers++; > } > @@ -855,11 +855,11 @@ static int helper_cmp(const void *p1, const void *p2) > } > > /* find helper definition (Note: A hash table would be better) */ > -static TCGHelperInfo *tcg_find_helper(TCGContext *s, tcg_target_ulong val) > +static TCGHelperInfo *tcg_find_helper(TCGContext *s, uintptr_t val) > { > int m, m_min, m_max; > TCGHelperInfo *th; > - tcg_target_ulong v; > + uintptr_t v; > > if (unlikely(!s->helpers_sorted)) { > qsort(s->helpers, s->nb_helpers, sizeof(TCGHelperInfo), > diff --git a/tcg/tcg.h b/tcg/tcg.h > index 2375dc4..6e2d619 100644 > --- a/tcg/tcg.h > +++ b/tcg/tcg.h > @@ -397,7 +397,7 @@ typedef struct TCGTemp { > } TCGTemp; > > typedef struct TCGHelperInfo { > - tcg_target_ulong func; > + uintptr_t func; > const char *name; > } TCGHelperInfo; > > -- > 1.8.1.4 > > > Reviewed-by: Aurelien Jarno -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net