]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Avoid recursion in tcg_gen_mulu2_i32
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 14 Jan 2023 02:03:44 +0000 (16:03 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Jan 2023 00:39:48 +0000 (14:39 -1000)
commit9fd86b518ee0abc0f0c013ce51e5384b8109d94c
tree71d05c52af26096b64ef4644e5bde2ff68fec415
parent00b1faea41d283e931256aa78aa975a369ec3ae6
tcg: Avoid recursion in tcg_gen_mulu2_i32

We have a test for one of TCG_TARGET_HAS_mulu2_i32 or
TCG_TARGET_HAS_muluh_i32 being defined, but the test
became non-functional when we changed to always define
all of these macros.

Replace this with a build-time test in tcg_gen_mulu2_i32.

Fixes: 25c4d9cc845 ("tcg: Always define all of the TCGOpcode enum members.")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1435
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg.h
tcg/tcg-op.c