Received: from eggs.gnu.org ([2001:4830:134:3::10]:36192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCYEc-0004AK-UX for qemu-devel@nongnu.org; Thu, 22 Aug 2013 12:59:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCYEX-0005iz-2o for qemu-devel@nongnu.org; Thu, 22 Aug 2013 12:59:46 -0400 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:40988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCYEW-0005iu-VY for qemu-devel@nongnu.org; Thu, 22 Aug 2013 12:59:41 -0400 Received: by mail-qa0-f44.google.com with SMTP id hu16so456331qab.10 for ; Thu, 22 Aug 2013 09:59:40 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 22 Aug 2013 09:58:41 -0700 Message-Id: <1377190729-14008-11-git-send-email-rth@twiddle.net> In-Reply-To: <1377190729-14008-1-git-send-email-rth@twiddle.net> References: <1377190729-14008-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 10/18] tcg: Use uintptr_t in TCGHelperInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net 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