]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Move minor arithmetic helpers out of helper.c
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jan 2025 12:35:34 +0000 (12:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jan 2025 12:35:34 +0000 (12:35 +0000)
commit538b764d3417b9295cf7f8b617eb7bc90cbc4ad6
tree97ec48c08f56ac0eae82691e6e7726732bf06d8f
parent1bb7f615a517ba85ebdbbd30d8de2120b4598d12
target/arm: Move minor arithmetic helpers out of helper.c

helper.c includes some small TCG helper functions used for mostly
arithmetic instructions.  These are TCG only and there's no need for
them to be in the large and unwieldy helper.c.  Move them out to
their own source file in the tcg/ subdirectory, together with the
op_addsub.h multiply-included template header that they use.

Since we are moving op_addsub.h, we take the opportunity to
give it a name which matches our convention for files which
are not true header files but which are #included from other
C files: op_addsub.c.inc.

(Ironically, this means that helper.c no longer contains
any TCG helper function definitions at all.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250110131211.2546314-1-peter.maydell@linaro.org
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
target/arm/helper.c
target/arm/tcg/arith_helper.c [new file with mode: 0644]
target/arm/tcg/meson.build
target/arm/tcg/op_addsub.c.inc [moved from target/arm/op_addsub.h with 100% similarity]