tcg: Split tcg_gen_callN
commita3a692b8bf247ab28c70fc8dce967a84db90d55c
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 30 Mar 2023 05:14:36 +0000 (29 22:14 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 5 Jun 2023 19:04:29 +0000 (5 12:04 -0700)
treed83eae44229af04971453fe2e3294c2e88b6eb73
parent177f648f0eacfd1a2b9a562a52297474b17b9adf
tcg: Split tcg_gen_callN

Make tcg_gen_callN a static function.  Create tcg_gen_call[0-7]
functions for use by helper-gen.h.inc.

Removes a multiplicty of calls to __stack_chk_fail, saving up
to 143kiB of .text space as measured on an x86_64 host.

    Old     New Less    %Change
8888680 8741816 146864 1.65% qemu-system-aarch64
5911832 5856152 55680 0.94% qemu-system-riscv64
5816728 5767512 49216 0.85% qemu-system-mips64
6707832 6659144 48688 0.73% qemu-system-ppc64

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/exec/helper-gen.h
include/tcg/tcg.h
tcg/tcg.c