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>
This commit is contained in:
Richard Henderson 2013-09-14 15:09:39 -07:00
parent e5e84d22a3
commit 5cd8f6210f
15 changed files with 7 additions and 48 deletions

View file

@ -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);
}