Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF3D1F589D4 for ; Thu, 23 Apr 2026 13:52:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wFuSj-0000kD-Cm; Thu, 23 Apr 2026 09:51:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wFuSi-0000k2-L7 for qemu-devel@nongnu.org; Thu, 23 Apr 2026 09:51:24 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wFuSg-000616-44 for qemu-devel@nongnu.org; Thu, 23 Apr 2026 09:51:24 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-488a88aeec9so86223205e9.2 for ; Thu, 23 Apr 2026 06:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1776952280; x=1777557080; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j6MYOyeyJGimQS2AbXbvngVBoZvDXVD0waN0vdNdT0Y=; b=tJFXNOHb2pCWVrudj5ewpOEb4Y6vE2UArLOriXSsTOnY7lMzn9A4Qp466fFQbKejoC rYhv7s+QwYygPRJAdWzXfDhL3cFXbL40DjKkdNymYUVKYFvwj1xekaz53dnji54VPcgs Nid+L0WXfpF95jdvtDIM3PbUszjrGMeJZ+ClNBNY51wIyFhpzVVn5R8SearwD22oOo69 PilfnKCzs5Du1w7hdyypYG4Xy/teRxRN0n80OHzyWlA0YU0JBPrul+OnV6za5GMeYjIn lBwCvAvp44LIqAbLnY7LoDEFy6Sd3ZPk9zAR97dVMInaISEEeTBesg34C5swMIu4Mmb+ mHgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776952280; x=1777557080; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=j6MYOyeyJGimQS2AbXbvngVBoZvDXVD0waN0vdNdT0Y=; b=sqsVppiQpT33BdIKm6vNsopR84l0rQItcQXpNq2ODYHa6ZNMNJ4egy+Zj0U3IIQL+n biFlcwIJk+ucWfopP2wHDiqImYeURCasBuU3YSaEF8WaVrpRucuubTOhnmY26Nng33d1 hhfBWWHfTMYML8CJbaD4f0lzQoXMxS6/Zf7zkkuUC/ZbN/ZHcOi2no6uuytlnl1RWDOD zVbc+HBQnDg7RFpRqKR0uUk7Qz/EY77E25dwM43hpEPDQwpAqWHLz+eCp22bDSk980ME dEnk/fUgxxcR3f2McBgCCpYdAb194WwIi+LFj205u3w3Jk9pv17pvRBHNPCs36ejqid5 afrA== X-Gm-Message-State: AOJu0YwEBlXv2pgHcy/QbaAN0FT4hcejNenrSaT2F+z6xXYg9QkBj2E5 ii6lYcvrN2b2I9JdB3GhMQ8gSqT6uxDKj8F0+GIrb0cttvmc31coPpbEDf67QM8p1IsETPo3r3K HbGqOWZI= X-Gm-Gg: AeBDievdVsw9JHnM8OtCGjhNCIoJ3SPzxkKIbMeOxQ5pobFlI89GBnHHEABV4KmxYM+ FUFd3SDHi+9h/EVTIHPUWLzZLtdYnNyiAY0EJJbAo7muc+CWEHtVTWdA84VXB5GhpJCy4jKFZvv wlU9Rx/AL2PrYzNpFn420Eb7Grmvnjb4q7k9zwUg7nzqAiQDW6x/1Wyxlkt3X+PoZdIaHCah0X3 9oGgw3Bd2xdEZkhKbM47WVQCWXpQ9mTDsFaHIyvqOBbavh0LAgUFu3S3Jo8Ar7J3JkKINSsySvS DKIWR1Cn076my9wfn8f6on5s33PnX6UBXjBvYbejlAovOylweoXipD15ubppKGAMwWIhGc78NAC fNbD22FTheYEFLTyOfshair2Rf41m86sDJC5cR5Z3bcNz5mhxr4+lNTncwowwLntEtsLFxu+rrX gUfrUjzkwWEsIB/e3GFVzHp8ywmzaR7zqMEaDGKKjeM1n+GIp10hs4Nlx3gHSBJnQkjJ2eO8GrR KVHJPipp8k= X-Received: by 2002:a05:600c:4ec6:b0:489:1f98:71e3 with SMTP id 5b1f17b1804b1-4891f987487mr237830685e9.28.1776952279753; Thu, 23 Apr 2026 06:51:19 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43fe4cb135asm57854091f8f.6.2026.04.23.06.51.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Apr 2026 06:51:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Ilya Leoshkevich , qemu-s390x@nongnu.org, Matthew Rosato , David Hildenbrand , Richard Henderson , Halil Pasic , Cornelia Huck , Eric Farman , Christian Borntraeger , Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 5/9] target/s390x: Compile translate.c as common unit Date: Thu, 23 Apr 2026 15:50:31 +0200 Message-ID: <20260423135035.50126-6-philmd@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260423135035.50126-1-philmd@linaro.org> References: <20260423135035.50126-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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é --- target/s390x/tcg/translate.c | 6 ++++-- target/s390x/tcg/meson.build | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 0f274621e5a..82165ac1ec0 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -31,8 +31,10 @@ #include "qemu/osdep.h" #include "cpu.h" #include "s390x-internal.h" -#include "tcg/tcg-op.h" -#include "tcg/tcg-op-gvec.h" +#define TCG_ADDRESS_BITS 64 +#include "tcg/tcg-op-common.h" +#include "tcg/tcg-op-mem.h" +#include "tcg/tcg-op-gvec-common.h" #include "qemu/log.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" diff --git a/target/s390x/tcg/meson.build b/target/s390x/tcg/meson.build index 67f31bfddd4..d1c60135411 100644 --- a/target/s390x/tcg/meson.build +++ b/target/s390x/tcg/meson.build @@ -3,13 +3,13 @@ s390x_ss.add(when: 'CONFIG_TCG', if_true: files( 'int_helper.c', 'mem_helper.c', 'misc_helper.c', - 'translate.c', 'vec_helper.c', )) s390x_common_ss.add(when: 'CONFIG_TCG', if_true: files( 'cc_helper.c', 'excp_helper.c', 'fpu_helper.c', + 'translate.c', 'vec_fpu_helper.c', 'vec_int_helper.c', 'vec_string_helper.c', -- 2.53.0