aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-08-20 15:38:41 -0700
committerRichard Henderson <rth@twiddle.net>2013-09-02 09:08:29 -0700
commit48bc6bab479e5abb542119f3974603afd882c246 (patch)
treec541adeed263b08693d8d8fe9007d22fd5f630e1 /tcg
parent2ba7fae29ec63acf2ce77d20d4146fa224bf2338 (diff)
downloadqemu-48bc6bab479e5abb542119f3974603afd882c246.zip
qemu-48bc6bab479e5abb542119f3974603afd882c246.tar.gz
qemu-48bc6bab479e5abb542119f3974603afd882c246.tar.bz2
tcg: Use uintptr_t in TCGHelperInfo
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c6
-rw-r--r--tcg/tcg.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 75df845..714b0c7 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -634,7 +634,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++;
}
@@ -864,11 +864,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 715812a..d27df66 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -402,7 +402,7 @@ typedef struct TCGTemp {
} TCGTemp;
typedef struct TCGHelperInfo {
- tcg_target_ulong func;
+ uintptr_t func;
const char *name;
} TCGHelperInfo;