From d53106c997e5c8e61e37ae9ff9f0e1f243b03968 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 31 Mar 2023 10:37:04 -0700 Subject: tcg: Pass TCGHelperInfo to tcg_gen_callN In preparation for compiling tcg/ only once, eliminate the all_helpers array. Instantiate the info structs for the generic helpers in accel/tcg/, and the structs for the target-specific helpers in each translate.c. Since we don't see all of the info structs at startup, initialize at first use, using g_once_init_* to make sure we don't race while doing so. Reviewed-by: Anton Johansson Signed-off-by: Richard Henderson --- target/cris/translate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'target/cris') diff --git a/target/cris/translate.c b/target/cris/translate.c index b2beb99..3c21826 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -34,11 +34,13 @@ #include "exec/translator.h" #include "crisv32-decode.h" #include "qemu/qemu-print.h" - #include "exec/helper-gen.h" - #include "exec/log.h" +#define HELPER_H "helper.h" +#include "exec/helper-info.c.inc" +#undef HELPER_H + #define DISAS_CRIS 0 #if DISAS_CRIS -- cgit v1.1