From patchwork Fri Jan 3 23:17:33 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: 854881 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp8479168wrq; Fri, 3 Jan 2025 15:19:01 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXYBuMUyZ9eNI+KUeouP0dL0q6FiNe/Z6jY1we1g7Xlh3c/NWq5sxEoaAWO+enS1WE+o5R41g==@linaro.org X-Google-Smtp-Source: AGHT+IEMQVtjdmLnYmc5gNu4wZVsWMaOs9X+DHgbaCyzhkBWt5yWEJpWG5JQ+Z4RX8GHodP2Gywd X-Received: by 2002:ad4:5bab:0:b0:6d8:ab3c:5d7 with SMTP id 6a1803df08f44-6dd23655202mr801479936d6.24.1735946341693; Fri, 03 Jan 2025 15:19:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735946341; cv=none; d=google.com; s=arc-20240605; b=dnNl/xwOF8xdZmHL4UzSy0p3Ab5FFGBj1OXKlJ0/C916/WoifvbdqinbrWVhtMzylK KxuqbK/aQ9ZnzhmCYYyfSyi3tjR+WmX35NA6IM/07IEIzcZqPUDpQzAJX+Gddv3IcFbX WWHnTRJkBND7q0Xda+s1db0mHqHBBONjYcYUlrdNJHPKA00eoB32rTs0yzaIcyCS5EMW 2288pCkqBd86F3mLuO2w59r1E2oJlPRywKuzTn9GKNmabcC5CwAsJGbS1lJHprXh2Yty GEi0M733GC9N1siop0b211WlxJO0BfFVjRGW/4JrIlqn89eX6o2an6q1mtgOvTUtTy0O j2hA== 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=Fd91irf1/HSw++4lXtUuV4IvFrA2wGjS8BYwmjz+8os=; fh=LruyahbjVMIdbB+JnKKCVZ8zocnkkp/6SVOzQ20og/0=; b=O6eWBXOOA85MrUHGXx159PDl4Q1Zmk25JfgtKek5eWYM6hjfeyewtRkG5Og9hCqH52 P6SZK3VxlVqFYZfzICn4sRA944XqpGOx/5CJow/vGCGHp8gidAJcUCLa24ct/0KnfDYf AuKeFqWbYMGAkwxmWLgy4JUZWV9DuWQIaj4L0Qq2MK2pND19oSwCtINhjzVEG6a5gAPQ UDNM0BOiHviMR4hex2ZA3V92UvzETP0UQFeWMUbQMmMiK1JUHT8sU6wHCaZ45GNqvwdp IeeuHE2NIWkazrpBaRudtsJz90IxMwDid9GPa+4jmecSzM6KhsbiIKatl9uoygt1gkg3 YTKg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w1Q5juwr; 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-6dd1835a4ebsi396640846d6.408.2025.01.03.15.19.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jan 2025 15:19:01 -0800 (PST) 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=w1Q5juwr; 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 1tTqvZ-0007g6-IR; Fri, 03 Jan 2025 18:18:02 -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 1tTqvR-0007fI-Tr for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:17:54 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTqvQ-0004Il-9J for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:17:53 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-436326dcb1cso84180815e9.0 for ; Fri, 03 Jan 2025 15:17:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735946269; x=1736551069; 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=Fd91irf1/HSw++4lXtUuV4IvFrA2wGjS8BYwmjz+8os=; b=w1Q5juwrkFU5OO5kFZeaDfapjX6xEks/bnvQYSfFABF2dm37ls/gjO59KR378hb+on QTxikA+ru8+dxdlWKL3A8qt5AQLbpr2iwzAyANSG69eSL/3PhczurnnpU1ju762124j7 5bPQckD65HL4skk4jNqxiDlI6CsM66f7OWLXDhjE9dOiFFsZ+4xHlXzcxqURn1IwcikG VYAJVCSqkVg0LCWjuPsQVXtmhlbI1ORWFhRcMLM4OjcFGhWZhQrFl8Ipu7esG0uAzUg6 Rs65zLAAItBukb8PX/u8bP0V00BN4ZmfAor7q4SAWd/aYmcayOR7nfJLZ3TRWi01X5R2 3S6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735946269; x=1736551069; 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=Fd91irf1/HSw++4lXtUuV4IvFrA2wGjS8BYwmjz+8os=; b=Ihv/dihDBnh4Auy5rUwCcsG0kvotaM81EzLFqcoFyroSnvQf2qfdHJdUOK4BERwiqM xLL0LVKWnkH9HetWF/pZkBltaRAkc4S6xEwiuyc8iEA9NY9EgV+Ih+4zx+qm0wMDY4GB 5xQ8TQ1qGuamCl44ncZ2vOUE3bVexvY0nS+kc2JUDymKXiMPDq9uIAJRK+zqBgkj7NbW J0coHHu6SeU44VxaTe8dWWGMTCZYUM6b/utodLsZ5nWvoPYU/2cbgp6O5bJClLozzGPr S9o/LjQPQXhOXlFvI3SRmEIhTAJupLb732ZN5FxbEhN9mbIvzrxevJANXhiejbtqKL/d Jitw== X-Gm-Message-State: AOJu0Yxr/ZuhGSmk97GgMCLDfUAOI/TMFXxk6b9D7xLPLsmHlVsU+mha ReXd2ccInT88W3GsDRtC7Vyku4I0W1gz3syvI3W+6AriVJCLu8SfizVAJ7+jrSmZwv7FCECQ9Jk xeM4= X-Gm-Gg: ASbGncuJAEsuJHs4SIvuU3lZD/AzRTCq7Yt91VgXbiha+J2Y0dSvwyHtgHD2RKLhztd eEw0xbXrLSED2XH2qKd5QLigbNv9sTBQwk6anMn8Fucn4WbjsrtwMY7Gek4wqk+MDpJDIAK/u0y NMVpnBOGywHDx4Hi9CaMG/8s+2qsfQJRAQleolFvi0BMXDeMwE2KP0z/fkPmsNSanob0CPTBuxR kGUz4ztVAcRRZg215sHb7PwKpXhpwxqDVPFviC2jY3R4616tdii/1HVJM+oI7AV4MrEoUKU+Dyb nPRNRLHXvZLUmbU/YpD3ZKk5RFyETjY= X-Received: by 2002:a05:6000:2ae:b0:382:450c:2607 with SMTP id ffacd0b85a97d-38a221f3392mr37667024f8f.4.1735946269189; Fri, 03 Jan 2025 15:17:49 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656af6c42sm530125255e9.9.2025.01.03.15.17.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Jan 2025 15:17:48 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Brian Cain , Anton Johansson , Daniel Henrique Barboza , Thomas Huth , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [RFC PATCH 1/6] target: Only link capstone to targets requiring it Date: Sat, 4 Jan 2025 00:17:33 +0100 Message-ID: <20250103231738.65413-2-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250103231738.65413-1-philmd@linaro.org> References: <20250103231738.65413-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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 No need to link capstone to targets which don't use it. Signed-off-by: Philippe Mathieu-Daudé --- disas/meson.build | 1 - target/arm/meson.build | 1 + target/i386/meson.build | 1 + target/ppc/meson.build | 1 + target/s390x/meson.build | 1 + 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/disas/meson.build b/disas/meson.build index bbfa1197835..4e80adf36ae 100644 --- a/disas/meson.build +++ b/disas/meson.build @@ -20,4 +20,3 @@ common_ss.add(when: 'CONFIG_TCG', if_true: files( )) common_ss.add(files('disas-common.c')) system_ss.add(files('disas-mon.c')) -specific_ss.add(capstone) diff --git a/target/arm/meson.build b/target/arm/meson.build index 2e10464dbb6..3d64334657d 100644 --- a/target/arm/meson.build +++ b/target/arm/meson.build @@ -1,4 +1,5 @@ arm_ss = ss.source_set() +arm_ss.add(capstone) arm_ss.add(files( 'cpu.c', 'debug_helper.c', diff --git a/target/i386/meson.build b/target/i386/meson.build index 2e9c472f49d..7d1363ec21f 100644 --- a/target/i386/meson.build +++ b/target/i386/meson.build @@ -1,4 +1,5 @@ i386_ss = ss.source_set() +i386_ss.add(capstone) i386_ss.add(files( 'cpu.c', 'gdbstub.c', diff --git a/target/ppc/meson.build b/target/ppc/meson.build index db3b7a0c33b..b5f509612ec 100644 --- a/target/ppc/meson.build +++ b/target/ppc/meson.build @@ -1,4 +1,5 @@ ppc_ss = ss.source_set() +ppc_ss.add(capstone) ppc_ss.add(files( 'cpu-models.c', 'cpu.c', diff --git a/target/s390x/meson.build b/target/s390x/meson.build index 3b34ae034cb..6e00793944e 100644 --- a/target/s390x/meson.build +++ b/target/s390x/meson.build @@ -1,4 +1,5 @@ s390x_ss = ss.source_set() +s390x_ss.add(capstone) s390x_ss.add(files( 'cpu.c', 'cpu_features.c',