From patchwork Fri Apr 18 17:29:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 882335 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp918238wrs; Fri, 18 Apr 2025 10:35:03 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXEP3nIXmbdfhy6c3XcYSmlZujJelnRd+3yx0UVgw9gnzq262BqKfumVm4W83Iq3/Q0irspDw==@linaro.org X-Google-Smtp-Source: AGHT+IHszZ3tedlmqJ8gYyHDXVeqiMuHnCVcPPQd+8eZ3jhjHmmRt7BIqhnc0PztI8UylUwLWnGH X-Received: by 2002:a05:6214:19c8:b0:6e6:6506:af59 with SMTP id 6a1803df08f44-6f2c45506a7mr51249916d6.15.1744997703444; Fri, 18 Apr 2025 10:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744997703; cv=none; d=google.com; s=arc-20240605; b=WblOiC4eLEOIaVGjmmhvOV7dRDET7TmOtLavInTY/HO2SlTOMHiszypDZYdV83s4QA 21usYs7rryChnLxyxh8saYrERS48KAw51j0l9+PfMAE/RiVQzLRSsvuHz/v8li3YknRU tW9gEy2Po/e9PDvmvToK1cn9sDrvgjLA1HflA336vkXJ9kq+JutqKXwn6DaGMphXkm0o W5BWcl/Hm4eB0KETRj0P3VwbzmQd91VTzauAUeKy6zOu46JhkOEdNOEBakeCOWuUFOGW fH0nWnPy+mxebwbigComw7wNYis2MAV9tDKVqLelf7i06l7cTJ7MIJuWZqMcvYLK4QaJ Cl9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RwvCBszA0F93ULs3epuAUVWkefEQwiSSHWBh59z/0XA=; fh=98FKcUbfHOMAWlQQi9/5y14VVYgcGa56vjU1mKYkvXI=; b=OR5DcKLN6vfGk3PlDYEzv5PbNAdP1Us6IwlwMkbdh3N4B9fbOKo4ga9XfOp1h3SHsc fyKozXp7Qikd4e3Ua4l2K4r+unIaa1cXjnaIgCbLOG9Dgr85vI2PWqgnypGrl1qmQDa+ ZbSw/19hr/mNaU1nbINEcxd9z3i7KI8CyqcuDwYftzW+S5bzpJTiivy1cDvm/IKtA7W9 T3P+BNg2Mm8SW2gUvM/WLy5qVRI0iGJe/xdGi5wSZG1UuZ3QqAyf8VU5eSkuO+FAtafn JVVidLfEGqcuoeibOxOAAEyNQ4ij07OlTbV2D2mMeINyBMIb+/W4rRNCVSN2D+eVjFbe tFdg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPkG47tG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6f2c2c430c1si25928136d6.482.2025.04.18.10.35.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Apr 2025 10:35:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPkG47tG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u5pXA-0002MN-5I; Fri, 18 Apr 2025 13:29:48 -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 1u5pX8-0002KK-Gn for qemu-devel@nongnu.org; Fri, 18 Apr 2025 13:29:46 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u5pX6-0008L3-Q8 for qemu-devel@nongnu.org; Fri, 18 Apr 2025 13:29:46 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-43cfecdd8b2so15567505e9.2 for ; Fri, 18 Apr 2025 10:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744997383; x=1745602183; 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=RwvCBszA0F93ULs3epuAUVWkefEQwiSSHWBh59z/0XA=; b=MPkG47tGlldCxlj680bIi0oALyoKhtVwwsRV4uK+p+m7tY59G14Qw2SLUObnpQCRqe 83xnx4lUSH7ZTlenWVd5pJ74EUJJTYOw4LCmbUHGdIMcsjEzu8/7Tvrd7ZLscO6DMH9P Kc/UyD2f/mJ1hOBhsRaRea+dflge40/z9IBSYFXFkQMFCh//ky8W26u3+TzI1WJHbibi 2/v/1SSxV1Y2eKylYywWCujvhu95tnbQ+kPIuY817ZIopahbJoVUTV22EJhT/peDVOf4 bDf9qQJXq35a7CCtG4P7dxdHzaNdkhoa/jTW0oD4/ocButb45BSXUQeXaLZh4Ti03+ok uHDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744997383; x=1745602183; 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=RwvCBszA0F93ULs3epuAUVWkefEQwiSSHWBh59z/0XA=; b=SG7mPhXsf0iyMasae8FYznYZ7y80HzsshRBsj2xrSJplcCD7xfF/fN2O2iqAQMSYa7 lKDgKng/y9xryAh+RaqvwEaczNrDZGuhjySYo9FrJRlXiAKnmfImF64yezI4ibPib54q 2lDDlbcaIQOhQtJsBuCfhEECdbzhi6O0tuzmxd1CBLAfBEp/5cbze6K4VX0MVFj20qfT TM/K9r2zfXrG0xGmBY/gle/S7TS8snmoxb62cQ0m1FFetqjdMzwUGLvWfWxJ2qC7o1RH MLz1kxE/qp6SBsjc4mS2JhygrDmU8q7yMezqQixhbPvODT8s06BGM1m/VgAjjDtlow5l 7MxA== X-Gm-Message-State: AOJu0YyJcr03sC1RP+VxNSIs3ZUvagdL9dqSojE9r7uBdJqKWWWvQmxn mzYn7+sSDEib/TQsYvImZKWf/iTvmPrBtf9fyuFRyFqZtkGU/X6AL0f0QrvdQx5xc0jL8yj9zMl 5 X-Gm-Gg: ASbGncu3KXgg1xvCSop7nhmYdCw3Pn4qIXLy5tUm3Du79IyHc+EUlk/7TUzIkT6mx8j rD4i6AANnCup/9Go543Duv3oPPWSVdsBozZfDbr2PBs4VjHXYFr6yS8woa0q/QxzV4n4rODXwqT kIPrJ0kJZGptcy3wAoT0KjfTg+tcyraAofc8KVXVmoY9gr+3QGpxnPWyHF0vBLZO6eqdYK6GAyc 2yC/E5aPyjEfDnWj51BItdWGG06LXmNv7PAZOS9oZEr4DbGSWo7iB0FNaaT6AkEcq0tCLx7+rz1 jAE85RcbIRnXFy4tZEwOdS+ZYRAloRmNYSFK0dgxaEWQK1P2yDFb2hhtlE+CgbjIOZA2eYtYBmK QtVOue5fjkGmnOaA= X-Received: by 2002:a05:600c:154f:b0:43c:fee3:2bce with SMTP id 5b1f17b1804b1-4406abfabe7mr24487675e9.26.1744997382797; Fri, 18 Apr 2025 10:29:42 -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-4406d5bbc81sm28942445e9.19.2025.04.18.10.29.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 18 Apr 2025 10:29:42 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Pierrick Bouvier Cc: Richard Henderson , Anton Johansson Subject: [RFC PATCH v3 07/14] meson: Prepare to accept per-binary TargetInfo structure implementation Date: Fri, 18 Apr 2025 19:29:01 +0200 Message-ID: <20250418172908.25147-8-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250418172908.25147-1-philmd@linaro.org> References: <20250418172908.25147-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org If a file defining the binary TargetInfo structure is available, link with it. Otherwise keep using the stub. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier --- meson.build | 9 ++++++++- configs/targets/meson.build | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 configs/targets/meson.build diff --git a/meson.build b/meson.build index 168b07b5887..b0d4a9fcd36 100644 --- a/meson.build +++ b/meson.build @@ -3216,6 +3216,7 @@ config_devices_mak_list = [] config_devices_h = {} config_target_h = {} config_target_mak = {} +config_target_info = {} disassemblers = { 'alpha' : ['CONFIG_ALPHA_DIS'], @@ -3809,9 +3810,9 @@ specific_ss.add(files('page-target.c', 'page-vary-target.c')) common_ss.add(files('target_info.c')) system_ss.add(files('target_info-qom.c')) -specific_ss.add(files('target_info-stub.c')) subdir('backends') +subdir('configs/targets') subdir('disas') subdir('migration') subdir('monitor') @@ -4272,6 +4273,12 @@ foreach target : target_dirs arch_srcs += gdbstub_xml endif + if target in config_target_info + arch_srcs += config_target_info[target] + else + arch_srcs += files('target_info-stub.c') + endif + t = target_arch[target_base_arch].apply(config_target, strict: false) arch_srcs += t.sources() arch_deps += t.dependencies() diff --git a/configs/targets/meson.build b/configs/targets/meson.build new file mode 100644 index 00000000000..e9a5f7b078e --- /dev/null +++ b/configs/targets/meson.build @@ -0,0 +1,3 @@ +foreach target : ['arm-softmmu', 'aarch64-softmmu'] + config_target_info += {target : files(target + '.c')} +endforeach