From 6e085f72c6d331fb0e9fc69e3061cd1e5893d9e4 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 14 Sep 2013 14:37:06 -0700 Subject: tcg: Use a GHashTable for tcg_find_helper Slightly changes the interface, in that we now return name instead of a TCGHelperInfo structure, which goes away. Reviewed-by: Stefan Weil Signed-off-by: Richard Henderson --- tcg/tcg.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tcg/tcg.h') diff --git a/tcg/tcg.h b/tcg/tcg.h index 20543f6..8c5eb42 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -405,11 +405,6 @@ typedef struct TCGTemp { const char *name; } TCGTemp; -typedef struct TCGHelperInfo { - uintptr_t func; - const char *name; -} TCGHelperInfo; - typedef struct TCGContext TCGContext; struct TCGContext { @@ -447,10 +442,7 @@ struct TCGContext { uint8_t *code_ptr; TCGTemp temps[TCG_MAX_TEMPS]; /* globals first, temps after */ - TCGHelperInfo *helpers; - int nb_helpers; - int allocated_helpers; - int helpers_sorted; + GHashTable *helpers; #ifdef CONFIG_PROFILER /* profiling info */ -- cgit v1.1