@samitouri / QOSamiQemu / commits / 82a1334c7e

target/s390x: Compile translate.c as common unit

In order do build translate.c as a common unit we need to replace: #include "tcg/tcg-op.h" -> #include "tcg/tcg-op-common.h" -> #include "tcg/tcg-op-mem.h" and: "accel/tcg/tcg-op-gvec.h" -> "accel/tcg/tcg-op-gvec-common.h" taking care to define TCG_ADDRESS_BITS, which is fixed for this 64-bit target. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com> Message-Id: <20260423135035.50126-6-philmd@linaro.org>

Philippe Mathieu-Daudé committed Apr 23, 2026 at 12:28 UTC 82a1334c7eac00ca82a17f705430001ecea233fb
2 files changed +5 -3
target/s390x/tcg/meson.build
+1 -1
@@ -3,13 +3,13 @@ s390x_ss.add(when: 'CONFIG_TCG', if_true: files(
3 'int_helper.c',
4 'mem_helper.c',
5 'misc_helper.c',
6 - 'translate.c',
6 'vec_helper.c',
7 ))
8 s390x_common_ss.add(when: 'CONFIG_TCG', if_true: files(
9 'cc_helper.c',
10 'excp_helper.c',
11 'fpu_helper.c',
12 + 'translate.c',
13 'vec_fpu_helper.c',
14 'vec_int_helper.c',
15 'vec_string_helper.c',
target/s390x/tcg/translate.c
+4 -2
@@ -31,8 +31,10 @@
31 #include "qemu/osdep.h"
32 #include "cpu.h"
33 #include "s390x-internal.h"
34 -#include "tcg/tcg-op.h"
35 -#include "tcg/tcg-op-gvec.h"
34 +#define TCG_ADDRESS_BITS 64
35 +#include "tcg/tcg-op-common.h"
36 +#include "tcg/tcg-op-mem.h"
37 +#include "tcg/tcg-op-gvec-common.h"
38 #include "qemu/log.h"
39 #include "qemu/host-utils.h"
40 #include "exec/helper-proto.h"