@samitouri / QOSamiQemu / commits / fb4d18e399

tcg: Include missing 'tcg/tcg-op-common.h' header in 'tcg-op-mem.h'

"tcg-op-mem.h" uses methods declared in "tcg/tcg-op-common.h". Include the latter to avoid when including the former: include/tcg/tcg-op-mem.h:34:5: error: call to undeclared function 'tcg_gen_qemu_ld_i32_chk' 34 | tcg_gen_qemu_ld_i32_chk(v, tcgv_va_temp(a), i, m, TCG_TYPE_VA); | ^ $ git grep -w tcg_gen_qemu_ld_i32_chk include/tcg/tcg-op-common.h:328:void tcg_gen_qemu_ld_i32_chk(TCGv_i32, TCGTemp *, TCGArg, MemOp, TCGType); include/tcg/tcg-op-mem.h:35: tcg_gen_qemu_ld_i32_chk(v, tcgv_va_temp(a), i, m, TCG_TYPE_VA); tcg/tcg-op-ldst.c:286:void tcg_gen_qemu_ld_i32_chk(TCGv_i32 val, TCGTemp *addr, TCGArg idx, Cc: qemu-stable@nongnu.org Fixes: a8af0fb24da ("include/tcg/tcg-op: extract memory operations to tcg-op-mem.h") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com> Message-Id: <20260423135035.50126-2-philmd@linaro.org>

Philippe Mathieu-Daudé committed Apr 23, 2026 at 10:02 UTC fb4d18e399182c430d00311169c60d3666c27a29
1 file changed +2
include/tcg/tcg-op-mem.h
+2
@@ -12,6 +12,8 @@
12 #error TCG_ADDRESS_BITS must be defined
13 #endif
14
15 +#include "tcg/tcg-op-common.h"
16 +
17 #if TCG_ADDRESS_BITS == 32
18 typedef TCGv_i32 TCGv_va;
19 #define TCG_TYPE_VA TCG_TYPE_I32