The subject came up in the contect of review of other patches this weekend, and it was pretty easy to whip up.
r~ Richard Henderson (8): tcg: Delete tcg_helper_get_name declaration tcg: Use a GHashTable for tcg_find_helper target-m68k: Rename helpers.h to helper.h tcg: Move helper registration into tcg_context_init tcg: Remove stray semi-colons from target-*/helper.h tcg: Put target helper data into an array. tcg: Add tcg-runtime.c helpers to all_helpers tcg: Merge tcg_register_helper into tcg_context_init include/exec/def-helper.h | 3 +- target-alpha/helper.h | 2 +- target-alpha/translate.c | 4 -- target-arm/helper.h | 8 +-- target-arm/translate.c | 3 - target-cris/helper.h | 8 +-- target-cris/translate.c | 3 - target-i386/translate.c | 4 -- target-m68k/helper.c | 2 +- target-m68k/{helpers.h => helper.h} | 0 target-m68k/op_helper.c | 2 +- target-m68k/translate.c | 7 +-- target-microblaze/translate.c | 2 - target-mips/helper.h | 12 ++-- target-mips/translate.c | 4 -- target-openrisc/translate.c | 2 - target-ppc/helper.h | 10 ++-- target-ppc/translate.c | 4 -- target-s390x/translate.c | 4 -- target-sh4/translate.c | 4 -- target-sparc/helper.h | 18 +++--- target-sparc/translate.c | 5 -- target-unicore32/translate.c | 3 - target-xtensa/translate.c | 2 - tcg/tcg.c | 114 ++++++++++++++++-------------------- tcg/tcg.h | 12 +--- 26 files changed, 85 insertions(+), 157 deletions(-) rename target-m68k/{helpers.h => helper.h} (100%) -- 1.8.1.4