From nobody Sun Apr 12 07:21:20 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1771005095; cv=none; d=zohomail.com; s=zohoarc; b=V4Sbml5D9m7y79Sbo+1EhRXQsA5J2L8QvDbc83T2ti+YFqvRCHks3vFvp9zG/xYPu001ZQJvNBPgROw9x8KI0QMhCmF3Oz2QOAl896Tolzjg0Ls1pt+kQ+I07CTYFsprHa6gb4e/oceTHO9E5V4VG1GGQi0gTuB2z5mCrdF0+zk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771005095; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=p0+uh7YmJRy4d+3ZUUskUmrjdGP/UXOy132eI02Y5GA=; b=MqkA/pZAqG0jzQZE/C14atApl1KF6MtnVUKqgmuJYLbCcOGcCUP32Z13+JJhlCbbff7+pSvH+R03FQ9NLXw1vi2d6aU64gyJe8PBiF5lgzmK/62grYM18v78uNiw1atyHmvjO/fWCIC9rvhD0CYbMwDW178L99pZoomf9vNk4Ws= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177100509500197.72475676508168; Fri, 13 Feb 2026 09:51:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqxJe-0006ND-KP; Fri, 13 Feb 2026 12:50:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqxJc-0006M2-G9 for qemu-devel@nongnu.org; Fri, 13 Feb 2026 12:50:52 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vqxJb-0006F8-2q for qemu-devel@nongnu.org; Fri, 13 Feb 2026 12:50:52 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-436263e31abso1123244f8f.1 for ; Fri, 13 Feb 2026 09:50:50 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796abe3b3sm8755776f8f.18.2026.02.13.09.50.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 13 Feb 2026 09:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1771005049; x=1771609849; 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=p0+uh7YmJRy4d+3ZUUskUmrjdGP/UXOy132eI02Y5GA=; b=J5Wt4lyTW3xHvlnU81esAB/nPrrpewsBwjidNEPXZ2bk4L/CvEZ80TSZqSFRVNyDNJ D/9uEf5kLdoTZFbqdIY538B5A2gPo9AqZHBP0WkiYy7aMF+HDmhi1NxQrx5fv5EGwkCL XXtjYrrB8fJcq3/+2gyYhLySl5M0sNq1VoEnQSkmPm2Fmp8IOFOEbwwUrvZU35NdLmIt N4v6kY7fDMXnPSXzVkYZDMofLJks9msP5vZfGDfECb06friS92P2kLTuqddPwWtU87fm D8E6ICrsTOospPjrFhc9u8I+iZyT7rbABIO9F7CWLEVVq7LJItDTV3i84TEyEiD3BL/y Ctdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771005049; x=1771609849; 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=p0+uh7YmJRy4d+3ZUUskUmrjdGP/UXOy132eI02Y5GA=; b=Sd7MNEYhaxju69rPbAUvimSlBIO7ugG4zISq+0QSMBqHkACBPcn8VD4yedmKwNq9SE ALNdpU1Xrif3RM2stwbvS4o4mrdPXnVPzqzw0Y2o7Fmb9dw8my5AiycMb/rbK+8CKB3T TjHZMSsfVszfkMD/C5GBaLVRh0msH1QsN6Ri/9JCV/nEU5Wkn6sRq1fe1kxGm7SnihPN rR8EXBb290W+txWOyLwRdqAOsX8bj+/OS3ethtTo9vur9R4tEOaYw3bArA8NnaxWl552 O+7el19FJ5f7N60O7KYW1Xk/gv0BIx+upQepiPN2pzrw79/9i/jVrjjLWMjMmzq5InRX Vifg== X-Gm-Message-State: AOJu0Yw8JuVd7gdG6iqMn7fEmj0xl5cS6KoG2MwEREMC6Uy7bT0rk3WC oKmHN9/qm0A1+4AktMb5a+USWe4UH4diFMZ3YayP+AJ/687Qfn9dipSQNGdcXX/uqqaGhCW0LA8 OlJELH4c= X-Gm-Gg: AZuq6aIrrkG0945M/j82LFQM8shaozhNFxfwWwquYq9676wstqH0Bj7IxTx67XWG74q 3ulDnqMtJV+vh2/qgmnB+LoSI+C3joD/RzjUDQz70sKT/qUKroNSvBtmqrMDvIFPi/wOrFas7jE cBvlsPqj+qnVPOUbkLbc9obbZOwt/I8JpzSqMxJpoLjEXTIXbezvfAB/nfngrlm6fthaUo3b6wq WUfWrW+/9LK2zhtCMh4hNazHlLQ/fDeMaJLukbupKHpfj0zfz0gTWkCNsumvDuC3fgnctYPwYbC dhoAtg7J2HrJT0SuXGn6DRO56odKXR/of3RIO9li3nfbw71WcQPjd64Re3WQuCiQ8Atvwg/9RyR J9Kbfj/AVzQfGP12uYxQ6xtE6fWlgSiZeEGI+vZPGIydl/NfRKQmGXlWYNwjD0jKobFONcYBbHi HRyppvAX0HEa4BoIm7c2+d4jaeKZTVJp2WR7hu/gr7dW+fOPQbaQnbs9gzvEy9+c7IkZFMeI2R X-Received: by 2002:a05:6000:2881:b0:437:6e55:a740 with SMTP id ffacd0b85a97d-437978e32b3mr5250061f8f.28.1771005049240; Fri, 13 Feb 2026 09:50:49 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Markus Armbruster , qemu-s390x@nongnu.org, Pierrick Bouvier , Fam Zheng , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Thomas Huth , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH v4 2/5] qemu/target_info: Add target_s390x() helper Date: Fri, 13 Feb 2026 18:50:29 +0100 Message-ID: <20260213175032.32121-3-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260213175032.32121-1-philmd@linaro.org> References: <20260213175032.32121-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1771005111811158500 Add a helper to distinct whether the binary is targetting S390x or not. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- include/qemu/target-info.h | 7 +++++++ target-info.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/include/qemu/target-info.h b/include/qemu/target-info.h index e3287334304..23c997de541 100644 --- a/include/qemu/target-info.h +++ b/include/qemu/target-info.h @@ -92,4 +92,11 @@ bool target_ppc(void); */ bool target_ppc64(void); =20 +/** + * target_s390x: + * + * Returns whether the target architecture is S390x. + */ +bool target_s390x(void); + #endif diff --git a/target-info.c b/target-info.c index a26532f660f..28c458fc7a7 100644 --- a/target-info.c +++ b/target-info.c @@ -88,3 +88,8 @@ bool target_ppc64(void) { return target_arch() =3D=3D SYS_EMU_TARGET_PPC64; } + +bool target_s390x(void) +{ + return target_arch() =3D=3D SYS_EMU_TARGET_S390X; +} --=20 2.52.0