aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-09-14 15:09:39 -0700
committerRichard Henderson <rth@twiddle.net>2013-10-10 11:43:37 -0700
commit5cd8f6210f83db15702e81b91e40e7079608e6f3 (patch)
tree58399547f7c4a63b61f67aefc5db4805ca65728b /tcg
parente5e84d22a3c31a674f9bb1d9ffcb92c111e13421 (diff)
tcg: Move helper registration into tcg_context_init
No longer needs to be done on a per-target basis. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 9cd5c38cb3..d3ac5fd9e0 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -254,6 +254,8 @@ void tcg_pool_reset(TCGContext *s)
s->pool_current = NULL;
}
+#include "helper.h"
+
void tcg_context_init(TCGContext *s)
{
int op, total_args, n;
@@ -284,7 +286,11 @@ void tcg_context_init(TCGContext *s)
sorted_args += n;
args_ct += n;
}
-
+
+ /* Register helpers. */
+#define GEN_HELPER 2
+#include "helper.h"
+
tcg_target_init(s);
}