From nobody Fri Nov 14 19:39:57 2025 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=1761080366; cv=none; d=zohomail.com; s=zohoarc; b=l61tr22kIeaKVyBn9c6IGIX0CWsp6LwK4zkZTJ4LrdXzi6qc8QFhPPjM1JYHyIFWrJ4xyIqyFdxt9v532evbo6x1ruWz7XooGKe0TXd9O08eRk+iDqfjMOsrW/eSmV2YP1z2CPTRZRoxcz69UKvqcepYDjyMW/zEg1i21DhaS84= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761080366; 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=whosNOd1evBb5CN/ykFAtQCNfw3MB+a/2C2jLEAbu3g=; b=FGhiOtjDaNz9vlyyqvszAFJmJfaqRcuFt24eHznEjeVkhGhEPHEbj8o2MGY08l56W7sB9t5iJzfi71Kzke09PFI1Ibemm7evuNEp0ldANh0GEMhg3RQ4uF5KUaoQIW3R+alt5hOwXuoyunv52aB5APKxAxcFxVUEZDCwaytblgs= 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 1761080366107649.4695742533943; Tue, 21 Oct 2025 13:59:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vBJRl-0001ws-S4; Tue, 21 Oct 2025 16:59:11 -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 1vBJRV-0001gJ-7B for qemu-devel@nongnu.org; Tue, 21 Oct 2025 16:58:54 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vBJRR-0002V2-Ki for qemu-devel@nongnu.org; Tue, 21 Oct 2025 16:58:52 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4710683a644so2612935e9.0 for ; Tue, 21 Oct 2025 13:58:49 -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-427f009a781sm22333487f8f.30.2025.10.21.13.58.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 Oct 2025 13:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761080327; x=1761685127; 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=whosNOd1evBb5CN/ykFAtQCNfw3MB+a/2C2jLEAbu3g=; b=V9IyRyaEu9M1da8KeOclPPfPOhQlGE+YMSjOfs6g1Sag36H7rzJZtRuPaIOWmhrMs1 wcEzBZpDBt7JbYVsguLUk6tWRVfpykyxBsP197LaK4V4ijYDqGrpeCvcyoSxtzRbFMKR ap2Ljv5fwXaO4dQNHa1qDdI1EeD2DbDOHvYzMbMHJt5HqWrnPelUtTN1Y2MrxQH1dKxQ a9cBVLXdOxzdrJ4zGflMp/wjqiFM1MFUx3wUv9DSupnv+ehUxvYov4GJH9z8ZZvxOPat +thWManqESklyZIfB0BFgo29F9TlQR2cjNTJci0AiYOPtFPhnytVSQhc2tcty9otQ2N4 Pwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761080327; x=1761685127; 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=whosNOd1evBb5CN/ykFAtQCNfw3MB+a/2C2jLEAbu3g=; b=JLq9692sNxAZsW7VxnYOBo5WmooUa7X1UG1WSdLQKngGqACBGYsnX+smTsAUoccB1Y xOX7Uuz+o9P/KmMHje9Lam9uBPt09KMuqxvzTvOSCjGBDeCY6KqxAJyrnwfIgE2marGv QutCnDfApFZQyC/BDMPT3fBVKfrF39pcqi8ppGWW7dO9TO0BOWMPDvu0iojpK3nXK8Kv bnL6FjWc+31oZW9HcDR1F4rzSvTaM/sEXYBSTnwgy+zKA/JKZx/fA1jX5aWAbUhj5PM6 ZJNpj3fvCFZVYUHb2+QvakJq5fTRyQVL0ABCyyMiEidcHEnuJg91exMnhZ4qPJ8EpJ3M srlw== X-Gm-Message-State: AOJu0YxjsVvC8QR7uYnxe83kIXcaEpfLD5LECuoM+b4RVjsknh5FaKsr mq7ru/gz+kMU1PR6AD1POoO2ew6QAdMYb9BkS4cU4jc4ZHzrp1MO2rKeIvdlhPMLjHrkb8qCer6 eAHdvRIg= X-Gm-Gg: ASbGncvtdDjBnCu6YBPqRqll1o6FhGqRcTx28H7mCNb7NzfOZu3/UhzLUNT3hblqv9j a8iERr6gQ6+1yQ7bMG6sOIimlMQHnJ3rykEZdiXXDZU3ebKQsU6JxIsvSf8MWJuo/R3ugdl9jU3 qavEwRL/ZxVY0Aa0Oai5n5R1UDgQcuzP2zlviKJ53uw8iZyOnfXgF0umi0uYIK1WXxyZltFpu6t 4U6Z36qp/+xMvTFAFdOI7D5TaQBzLxMoKInKCquij3cB6yWlL2TVZX+aXCYKQ3rrqcg/06UN6o2 kFGNhE/pHag206KsYUFOOhmxw6NLOmHBX70pevl6EPA/wySQpn60FkeU53/uqEUk1fpEpbQzz2W g1gIBkmT47cEeD6wKZyQx/0CD8JhGyTdYViIeOCvIEKvd+iNuuRYCKWv4m/pWS4XpHEGop/96sQ PrTTahBZsIAu3brtqwBNvXYvrxxqTZBk90ON5kxJ5EeknJOdfGWQ== X-Google-Smtp-Source: AGHT+IHpqGtzxhLlzJ/8CJcHoSuIpu8z0k+5zMOVhU48guDiApDzEapJg97ybMfj4CPo7dEomB91Lw== X-Received: by 2002:a05:600c:45d4:b0:471:6a1:26e7 with SMTP id 5b1f17b1804b1-475c3ed722amr7390225e9.12.1761080326940; Tue, 21 Oct 2025 13:58:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Anton Johansson , Peter Maydell , Luc Michel , Zhao Liu , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH v7 05/19] meson: Prepare to accept per-binary TargetInfo structure implementation Date: Tue, 21 Oct 2025 22:57:26 +0200 Message-ID: <20251021205741.57109-6-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251021205741.57109-1-philmd@linaro.org> References: <20251021205741.57109-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::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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: 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: 1761080370291158500 If a file defining the binary TargetInfo structure is available, link with it. Otherwise keep using the stub. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- MAINTAINERS | 1 + meson.build | 9 ++++++++- configs/targets/meson.build | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 configs/targets/meson.build diff --git a/MAINTAINERS b/MAINTAINERS index d4e7fd965b0..e7c99aea3ce 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2002,6 +2002,7 @@ M: Philippe Mathieu-Daud=C3=A9 S: Supported F: include/qemu/target-info*.h F: target-info*.c +F: configs/targets/*.c =20 Xtensa Machines --------------- diff --git a/meson.build b/meson.build index f4ac0a6e95b..0f27a2a8f90 100644 --- a/meson.build +++ b/meson.build @@ -3312,6 +3312,7 @@ config_devices_h =3D {} config_target_h =3D {} config_target_mak =3D {} config_base_arch_mak =3D {} +config_target_info =3D {} =20 disassemblers =3D { 'alpha' : ['CONFIG_ALPHA_DIS'], @@ -3912,9 +3913,9 @@ specific_ss.add(files('page-vary-target.c')) =20 common_ss.add(files('target-info.c')) system_ss.add(files('target-info-qom.c')) -specific_ss.add(files('target-info-stub.c')) =20 subdir('backends') +subdir('configs/targets') subdir('disas') subdir('migration') subdir('monitor') @@ -4364,6 +4365,12 @@ foreach target : target_dirs arch_srcs +=3D gdbstub_xml endif =20 + if target in config_target_info + arch_srcs +=3D config_target_info[target] + else + arch_srcs +=3D files('target-info-stub.c') + endif + t =3D target_arch[target_base_arch].apply(config_target, strict: false) arch_srcs +=3D t.sources() arch_deps +=3D t.dependencies() diff --git a/configs/targets/meson.build b/configs/targets/meson.build new file mode 100644 index 00000000000..a9f6b24ec01 --- /dev/null +++ b/configs/targets/meson.build @@ -0,0 +1,4 @@ +foreach target : [ + ] + config_target_info +=3D {target : files(target + '.c')} +endforeach --=20 2.51.0