From nobody Tue Feb 10 06:48:43 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=1745533396; cv=none; d=zohomail.com; s=zohoarc; b=ZUKvMkCwi0lHDCet5wItxYLUmG002pTbwuKLDw23khTiOssrVYI9fRF/qRbqVmjoGI5r5hTj8WeqLA/GPY3epc6JZnUOZukZiwsGw9Lf6OB54imTVM09oYvVTiKUaZOD7hvPT5XfPFmF5B/f2Qe1tAVV9GRFc+utjb0agyKThbY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1745533396; 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=yyQnKU/Qb5MFlABzvGsbZVvBtDKdqhE3tTnhTcPso0Q=; b=Bg6J4pI/j1Kp3rjn1O4O7akZ6rvLlZnldcxvxvQwIONsaEJepSzQ7xYxhctE6sWR3Vp14unzQZ/bUKpujSN4szrE/XM7Lw6iCc9ILdXGihZZKew1Sz+l6w3XQ0hQSBbCunHgg0aX1/nHbLJ+y9fpdcndFN1IBzB45qdXN6ZcYUs= 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 1745533396061101.90418956438214; Thu, 24 Apr 2025 15:23:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u84xw-0006UO-GK; Thu, 24 Apr 2025 18:22:44 -0400 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 1u84xu-0006R3-LU for qemu-devel@nongnu.org; Thu, 24 Apr 2025 18:22:42 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u84xt-000138-28 for qemu-devel@nongnu.org; Thu, 24 Apr 2025 18:22:42 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-43cef035a3bso10880485e9.1 for ; Thu, 24 Apr 2025 15:22:40 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-440a536a1d1sm3101845e9.26.2025.04.24.15.22.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 24 Apr 2025 15:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745533359; x=1746138159; 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=yyQnKU/Qb5MFlABzvGsbZVvBtDKdqhE3tTnhTcPso0Q=; b=g9dkEEVUa1sBNzfEx9lGQIz+OSoT74WRNyy9mTaK+/LSxYjb5Q1De4tWBFmmNUOT4G C5p2b79as88oGNASOQWGTMwOUHqJQ56R1gK1nsF7B+kVhiIZJsrV0wYClnuqVjJbrkJn sBgJ960Ds9Szpq2xI5vsqdJk4dnQC6sWCUhFt4RrtHmyx/ABDinbuC03zEmQMPpFg3Rc vYKeNNdbJieWEuN200HEnQKA+Me5FAJUBJLNgAsOlhZdT0BDeK/kIhh/H6rf1pFYPyxo XTjtZtpPVkuPqywx2rkOwx6t7umkBA3zCyovE/B7ar3qgq00LvjsMhExbJTXY1IIpnP7 jWrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745533359; x=1746138159; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yyQnKU/Qb5MFlABzvGsbZVvBtDKdqhE3tTnhTcPso0Q=; b=VBwMdJ2UkzXjPoTjJcCDpedJTbwHBakNwpiquJycvshAZO/t6iTinovRcyHKEj7VUb SQqizCXxv79B2tMP9BhIsPQE3pi1iwctfHbSN5V2nDjcv2bGejJHJit4mWBfOPyJEUq4 0p4jEgInj2uwMhZHi1dgS/mgFvyYOew72SHrQHP+LV7LZmcapQLrZ4BrGM43fJ3lnF5c KXeGPwHlPPuu8NEY+YZwi0ZSifVi0AU3otbXKGGE1AuU4gx6x6FIXxZHKYFmQYG/plS5 UwvXgaNqv99KGuEzMPmkYErCyPXTEudmtoO88gLhEUylPVWm+4RRGokua5F/d8WMwZ41 pCGg== X-Forwarded-Encrypted: i=1; AJvYcCU/ReZqWTd5lcqjEiifLsnfyI0AtJbahqD0cCvrIejR/KlqyYhzYyigyxj7FzoQjG+9XPIrvbyzUBrJ@nongnu.org X-Gm-Message-State: AOJu0YzAtrOgyxzBLK64Nvrzjg5CY7jERGRL+qTxuGQZVX2IFwQ9JZaD KJYxITD7f6rwoyRueOgNS+ojJvD7xMqarzMQQgALZR48sy/F+wb64qzp0NRUcCNukGvEdKy9V27 G X-Gm-Gg: ASbGncvdTYzH3mfWQjagDQFokb7t3MG9X0lSR6Wt51+FnTa3BF/1HLL8IRoSRTYgYP/ 2n2anCtNPG6sPSSbio8mVsqeBOQhcn1VcMPY6fKL1rJoXcrY83tPIGZoIQgT4lViYWBwMbEIk+6 H7ar8UCtzfCGSYOrd4YenI2PQnXSBmt9DAflNfjaobElY9Yk+lBhsYXbOgWovFGZGDhy0flmFl+ AQ1nfpLz09xAfYjxFhRXzDWXQZqSlG/lDgFI3tZneFYy8FEchedoCP9nxPMXS3leHBfjL54phEh W0QrAooIGaJch19JGoSXBIBT4lQ9ybsHVb7FSb6pg8UIyE7QrQZNZB+A7LkfjP/5OQspOGvcE8T j/DNtQZkVkKns7dw= X-Google-Smtp-Source: AGHT+IECeKta2KvUC5QS/hTRuwatDXyarQEp+wOp36wIgAsyuJvbmMrzOk1pOlk1lmNREfpxWr+TpA== X-Received: by 2002:a05:600c:3b04:b0:43c:e2dd:98f3 with SMTP id 5b1f17b1804b1-440a31923d2mr8331775e9.21.1745533359108; Thu, 24 Apr 2025 15:22:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Pierrick Bouvier , Richard Henderson , qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH v5 17/21] qemu/target_info: Add %target_arch field to TargetInfo Date: Fri, 25 Apr 2025 00:21:08 +0200 Message-ID: <20250424222112.36194-18-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250424222112.36194-1-philmd@linaro.org> References: <20250424222112.36194-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::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: 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: 1745533397238019100 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- include/qemu/target-info-impl.h | 3 +++ configs/targets/aarch64-softmmu.c | 1 + configs/targets/arm-softmmu.c | 1 + target-info-stub.c | 1 + 4 files changed, 6 insertions(+) diff --git a/include/qemu/target-info-impl.h b/include/qemu/target-info-imp= l.h index d0e8c86176c..e5ef425f2dc 100644 --- a/include/qemu/target-info-impl.h +++ b/include/qemu/target-info-impl.h @@ -10,10 +10,13 @@ #define QEMU_TARGET_INFO_IMPL_H =20 #include "qemu/target-info.h" +#include "qapi/qapi-types-machine.h" =20 typedef struct TargetInfo { /* runtime equivalent of TARGET_NAME definition */ const char *target_name; + /* related to TARGET_ARCH definition */ + SysEmuTarget target_arch; /* QOM typename machines for this binary must implement */ const char *machine_typename; } TargetInfo; diff --git a/configs/targets/aarch64-softmmu.c b/configs/targets/aarch64-so= ftmmu.c index 375e6fa0b7b..ff89401ea34 100644 --- a/configs/targets/aarch64-softmmu.c +++ b/configs/targets/aarch64-softmmu.c @@ -13,6 +13,7 @@ =20 static const TargetInfo target_info_aarch64_system =3D { .target_name =3D "aarch64", + .target_arch =3D SYS_EMU_TARGET_AARCH64, .machine_typename =3D TYPE_TARGET_AARCH64_MACHINE, }; =20 diff --git a/configs/targets/arm-softmmu.c b/configs/targets/arm-softmmu.c index d4acdae64f3..22ec9e4faa3 100644 --- a/configs/targets/arm-softmmu.c +++ b/configs/targets/arm-softmmu.c @@ -13,6 +13,7 @@ =20 static const TargetInfo target_info_arm_system =3D { .target_name =3D "arm", + .target_arch =3D SYS_EMU_TARGET_ARM, .machine_typename =3D TYPE_TARGET_ARM_MACHINE, }; =20 diff --git a/target-info-stub.c b/target-info-stub.c index 218e5898e7f..e573f5c1975 100644 --- a/target-info-stub.c +++ b/target-info-stub.c @@ -12,6 +12,7 @@ =20 static const TargetInfo target_info_stub =3D { .target_name =3D TARGET_NAME, + .target_arch =3D -1, .machine_typename =3D TYPE_MACHINE, }; =20 --=20 2.47.1