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', From patchwork Fri Jan 3 23:17:34 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: 854883 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp8479245wrq; Fri, 3 Jan 2025 15:19:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVQCje8NgLO6BKIX6xSwdnG6t0/xTDVrs8cAYnNtMu6xzlB5dHz2vS1/YJRNhmUmR/UQ7IgfA==@linaro.org X-Google-Smtp-Source: AGHT+IEOghR4j9AeAUVk2QHFf1yv6gKuc9f4B6t96CM8qnTH5iaqh0pqBFet3Z4U0Yy3lUbU5KJO X-Received: by 2002:a05:620a:4551:b0:7b6:6c46:55b with SMTP id af79cd13be357-7b9ba6efbbamr8577913085a.7.1735946357577; Fri, 03 Jan 2025 15:19:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735946357; cv=none; d=google.com; s=arc-20240605; b=jZSKDTtrbTyMggQh9E3oFsq/IUaOK7PR0l5/IVVKkElX8vJ3qUlo8zjMcEkGZESxkh 5QwJKICLow7TexK3RgGwoQT19IYfEWK7et6iR9qTG8h7+PXwH0kjOSdOxf8vLNDwF4si UUhMYZzYeNgkkQxN0lLYtLdmxOFtI7+yCI9a9NX2CojkyTWvQ2Q8AAA5A7lz7fAe3nDj w2O/SuomI1jffxiBffFclwvyhObiYkbI/UuxrRn/xUtttBK+OmfJ21AHn4PYR1eOoCmQ 0gmeFYF77ZpsT46Ma90xPjUBh8q9cRXeTASB4tCS2vXpxKuu77OZ21SLnnHnl/KS7SzE iFjA== 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=KQ9HwgRLAFrCzsuWk8e8Izv39QpUuV0vSTvePsKRUFM=; fh=LruyahbjVMIdbB+JnKKCVZ8zocnkkp/6SVOzQ20og/0=; b=g8zyCZLOS5Sy+9ofYddL4QT70kacbidAnBHC8CmbdE9f0idgZ89NynTbjwJeoVrknb lWKQCC0KkTWLrLct7k2/ygbAkJtVNE5FF00gD7xwLteVjyAEN+70yWLA3bF0W43agBck m2eeGlV4obbpNhrFXLtqrqrx8Mr2gtwtHMvUXlHkOCIbiBh9w0QH5krdhNnbNwWJRqqF pnXFgaTJB/KigRt90rpzQKQSl9ubxkiu+MgmavZSKZkj35qZeZMNMnKMi80s1ItDSmDz 0Ap9VK/CcIH0P3yfk7DsrdchiSDxoZUjLDU4EHRKB/ojGFwbUyCBccIjpEbBjd12uvcF jMuA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W2nDLA5S; 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 d75a77b69052e-46a3e688aa4si362113501cf.88.2025.01.03.15.19.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jan 2025 15:19:17 -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=W2nDLA5S; 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 1tTqvf-0007gk-D2; Fri, 03 Jan 2025 18:18:07 -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 1tTqvV-0007fo-T9 for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:17:59 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTqvT-0004Iz-Ty for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:17:57 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4361c705434so92102605e9.3 for ; Fri, 03 Jan 2025 15:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735946274; x=1736551074; 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=KQ9HwgRLAFrCzsuWk8e8Izv39QpUuV0vSTvePsKRUFM=; b=W2nDLA5SNwxYZ/UBHk/ajoIY9IdzF/kfk8MTe61Ja8UStwzeZ6j19SHUPZjxGc9NLr 6dTxI8i+1aajNIyHzB/czADzileUyn7lVzDdPyno7VgHGPeB1OEkMNCOvsvCngJZCy14 30pnPVyaRrJ8+DyCK0mfIaNNu5UJGZI2ozlhskTMOFePbElgXR1QedHDYl48Sxl4/1Gp uhwjltk7CDk9e7x//+d9oOvOOoQtONF0IVdi29FduiGqJF5DPHCIt67DYf3AWO4+UCn1 3a1dGmnlQUEAAswd+5xQdFlR6duO3Gggo2OXjQkLvIX0BG9v8hT9cZ+RufnPa0WEE3oK Id3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735946274; x=1736551074; 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=KQ9HwgRLAFrCzsuWk8e8Izv39QpUuV0vSTvePsKRUFM=; b=TukPnJscx1nsXvrQ3Kxji4r/CKjSBkTeNQNaamwPJzuwS6zLc3jGqIUzX3q9x6Z8kh /xrhQVid3OOCZVFSeInyTuAfKLfwYy8yVJYL9q16RJxQRZXfL7rBJTk2FJw/69IzQbnW yABYFR0vyjx6h8NDyr00UAHOf2zSgFo9SoABrvvLAHf8cLbuGkOLWpOPlBYKf1dlaonS +le8nge4ZpSy8XM+tK/6Wx9OxK23KpWF1crlP0uVei5Vh7G0ODBgPJ+4Dt2UapWtWhFK wi42nqh8MUd2jZZY8HlGZsIICIy1xMAsjDDCge8P+ANIMODvCaZRRQpLhYQ7EGUQxuNl hg0A== X-Gm-Message-State: AOJu0YyG4RuplPMYogg2jBhFjU/gwgv8CNQZM8aP+pclARPyaEDN8IUZ 6V8Hd13Ad/GV/6eVLquMrKPAiDruAw8XxvAAXUKtTo3IiotIaRLL4CHcvuc02Aw+OjzmrsqJBtB LcW8= X-Gm-Gg: ASbGnctr1GfrOJ977cHCzRdZmTV5X/agPoZPWLQsB/6+T1hnN0gMzJeMmJUhZbSUxJs PtRBTA7JHgSv7fJQQx/uh+ge97VikiXDFMisnNRBCGcn+P3VFrr+GktmFq922nABT9zuqPYjxGH KHraytB/kgMJVc/RQA+Y0pdPJizCLwMVM3sZNZfGOJQyiU7E7hBZo1qXd2oxLcHz08tsuHRWuG5 eGOJc8ipRdiVD8G0ljrOASLU2fwO0a0eH6N5Et6kTipiLrnS0oJLH9xd+xSfvjI7ctB3mqe0QC3 37JqKDUROsaXEhMxh5JH65fc58+/lnc= X-Received: by 2002:a05:600c:1c21:b0:435:194:3cdf with SMTP id 5b1f17b1804b1-436686463ecmr429598835e9.19.1735946273859; Fri, 03 Jan 2025 15:17:53 -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-43656b119ccsm529170185e9.24.2025.01.03.15.17.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Jan 2025 15:17:53 -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 2/6] target/hexagon: Add Kconfig file Date: Sat, 4 Jan 2025 00:17:34 +0100 Message-ID: <20250103231738.65413-3-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::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 Keep the Hexagon target in line with others. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Brian Cain --- target/Kconfig | 1 + target/hexagon/Kconfig | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 target/hexagon/Kconfig diff --git a/target/Kconfig b/target/Kconfig index d0c7b59d9c7..17cfb4648d2 100644 --- a/target/Kconfig +++ b/target/Kconfig @@ -1,6 +1,7 @@ source alpha/Kconfig source arm/Kconfig source avr/Kconfig +source hexagon/Kconfig source hppa/Kconfig source i386/Kconfig source loongarch/Kconfig diff --git a/target/hexagon/Kconfig b/target/hexagon/Kconfig new file mode 100644 index 00000000000..7e556f35063 --- /dev/null +++ b/target/hexagon/Kconfig @@ -0,0 +1,2 @@ +config HEXAGON + bool From patchwork Fri Jan 3 23:17:35 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: 854880 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp8479131wrq; Fri, 3 Jan 2025 15:18:49 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUGIqfuFlH6O4znFP2aXdQu+2lnD2ePIJOjmZOABYzIO+ePHi7fo46JHV9QB7OPms9S/grQyg==@linaro.org X-Google-Smtp-Source: AGHT+IFTvmvfHP1ePXJq2G20Lk+AvpQWgbHnlOKo5OMQ3q/Z67LhcIYbBM0VETbDEUnSm7oAqGOd X-Received: by 2002:a05:620a:2987:b0:7b6:c92e:2e83 with SMTP id af79cd13be357-7b9ba73f86dmr7802568185a.17.1735946329598; Fri, 03 Jan 2025 15:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735946329; cv=none; d=google.com; s=arc-20240605; b=TRAxSTT+WLGfcwWIjUn9dz3WnzjyQAB5yA8WxUwx1eGfGUaeB1CJJ6qg/wsCPYk3Z+ DYyklSvPBxUKCIhA06UEz5uuh5ODHiiT1KMlCXuWIp4apWnNhWlvafqT33ddTM/fGh/C j66lHiaVDnNcoiq3OjVFJw+Dt09eKz2YqCznQwY8sRY02r/4y4aGxlJAtGQi3fRn6Pqb XrPNRSO43rxI9FobPJ4gXTqIJ8hHsIY5V2z8zNT//buI6Q0GakEHh60AWPiOpZoP+jTr yWBL4y0bHMcreydcsGtQElkL/RBGEOopWwp7vxl0dBi2fGWoki0EyDXhx90N/0LX72R4 Yjcw== 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=Dvr9i4kjv30irFUGSKh7uwfrgCkzcWtJhKmLo4Kj02k=; fh=LruyahbjVMIdbB+JnKKCVZ8zocnkkp/6SVOzQ20og/0=; b=MDUgLzI12IyZ8EeMM/F00LCEPeMZ4kQVvED+1AgjYZRTlSWu9viyPlJ1koQpimpDZl Ru5q5HIsmHY4hWmf6/bNeh89B8hJL/fVeAkVAnz98rk93Iwr5p9DMnCg6V2RttfBPmO3 as+oHJr+MWRpToGP2NBQpwc7RWf/gGPnYxUJLVVN6SrSzASYojj7UQLlwKxFIb7itJWc N+4RdNmRT9uEu07ItBF2CsPS2egiBlJdwiDOYgjdTy+8rsNGwuHSHHWcKOIMoGtOuAz8 RSKlbFf0evqW0N99UKeLSOM4XQiFtRwsHfKKjcxwVlgvelXevNDyeEqP+o/KvtOKN0Up buDQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cfjna+cK; 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 af79cd13be357-7b9ac2ad631si3729522585a.100.2025.01.03.15.18.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jan 2025 15:18:49 -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=Cfjna+cK; 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 1tTqvj-0007hS-BU; Fri, 03 Jan 2025 18:18:11 -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 1tTqvb-0007ga-Fy for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:04 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTqvZ-0004JB-SO for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:03 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-385e06af753so6430526f8f.2 for ; Fri, 03 Jan 2025 15:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735946279; x=1736551079; 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=Dvr9i4kjv30irFUGSKh7uwfrgCkzcWtJhKmLo4Kj02k=; b=Cfjna+cKtWmohoBijknJyZ6H+a6gIz6cBVrnPAC12qB4eyNAGRNBoLrVQQ57iZto7V sOXMmUT448QkHEJiqdHVYOK2V47wp8WMjlI3KXP7Ma/smr5zzInAqsldjFiPIobY8lSB FulgHHGkQ8qpCW1oPGo/V4WyTdaqKuIDtA9b4R/hJUympNX92uL1nNm72OH12zesnYbY SlVYUpbWF3/c07StqayD89T5di5Bc+UFae3Si4xJOvkM4HV0N9kq2ahXDWoYuE+nLtkL DSwvSn5kSIDAp/GMzSSkUutyx2bqJRukJCvJ/CJ+bJCc59XVnyR8IQC19cv5pJuzCdw1 Xc/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735946279; x=1736551079; 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=Dvr9i4kjv30irFUGSKh7uwfrgCkzcWtJhKmLo4Kj02k=; b=SELgaIqxbtWCxkvUIenDlGYMuMgGM8Nllb9VgdyOm0HepAWe2fGt8Z954LhvlKjl+x NpWBkrCpCIfGVGhwX7mt+JoxixbwbErOdt7x8OSmReb9uQ6AzaxIusQ47ziCp0VZv/9c t+GKEDf/M/bkWjnpFwGwUb7i38sK8YefmKL9nI+oz8WaERK/Qh65ZQ7owlAJFlGFF7Rt gASebXnYFz19t6u5If1FYPA8X4lDLBgfPnb2iO6PQUpPLfmiVEZwCR+ZjBbz9c+AO9j1 lHGtGcWmVrgpM4Pc6fkRVoTuMi3aNcgy9GqBU0NMY5vvqa/uZdJSme0U/nu8ZV590tnL 91GA== X-Gm-Message-State: AOJu0Yzzficg1roz2LoiZm9L0ouG0gq93THcSQbSopPrAxJ6ubeUFfLa t5v4vpN9J/qeR3AaM+Qb8jYZYf9vffNqdqSHmKjzAso4js2ufEWqoHAdxlaLIZyu5Oi4qXgHOZS bkpk= X-Gm-Gg: ASbGnct4BW0jREY8Rj0YYdCBPok3CNiIADX15HT9H00ZPUNd9S4oV8PuhgrkRtOyMJS BEpvB+DDMrsevmAE33xu/gmKZRCak8s/EhFDx34gyegJd6qfXc34J63W/rpE3D1Yd1cQ7fzAR0w ccJVfRshGKABNnH5xDzWw44ua9frnjYlJUf6/v2ZV8ub8QELaqUqXJIt9gOn2szhDPLtbqVGMw/ DEwB/BMLLJU62LaoQlrfrj9JmWrAqOKc/P1Ux4ZfXi6F6AHrBupxj99Nwv5WH5ieCbuQkp477CR bQcHc8DcRc7XJtmv/YzofI7xJbxR4N8= X-Received: by 2002:a05:6000:704:b0:385:fc00:f5d4 with SMTP id ffacd0b85a97d-38a221f9f79mr43046709f8f.29.1735946279572; Fri, 03 Jan 2025 15:17:59 -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-43661200abesm493862365e9.18.2025.01.03.15.17.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Jan 2025 15:17:59 -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 3/6] target/xtensa: Move xtensa-isa.c to common_ss[] Date: Sat, 4 Jan 2025 00:17:35 +0100 Message-ID: <20250103231738.65413-4-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::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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 The Xtensa disassembler (selected with CONFIG_XTENSA_DIS=y) uses methods defined in xtensa-isa.c, so this file has to be compiled when the disassembler is linked. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/xtensa/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/xtensa/meson.build b/target/xtensa/meson.build index f8d60101e3d..68ebfe2582d 100644 --- a/target/xtensa/meson.build +++ b/target/xtensa/meson.build @@ -12,9 +12,10 @@ xtensa_ss.add(files( 'op_helper.c', 'translate.c', 'win_helper.c', - 'xtensa-isa.c', )) +common_ss.add(when: 'CONFIG_XTENSA_DIS', if_true: files('xtensa-isa.c')) + xtensa_system_ss = ss.source_set() xtensa_system_ss.add(files( 'dbg_helper.c', From patchwork Fri Jan 3 23:17:36 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: 854879 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp8479124wrq; Fri, 3 Jan 2025 15:18:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVFuJIdQCQTJBb/Pu9r8Jv36Z62YfvZY0yKnWd3pdiqWhMa9pCZiUJlHHW7n00JWk/hxHkKww==@linaro.org X-Google-Smtp-Source: AGHT+IE/q5g/7R9K7IyVVsPFZnAnv0HKQNwF8m57v2ArdFult9wV4toKlCBaMyqXe0PFjxzz7Aqs X-Received: by 2002:a05:620a:459f:b0:7b6:dfbb:3227 with SMTP id af79cd13be357-7b9ba6fd86dmr8632607385a.10.1735946328662; Fri, 03 Jan 2025 15:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735946328; cv=none; d=google.com; s=arc-20240605; b=Tkod9hMhSM1na/17HEnSqAXXzhqL//xVidNPsNd/5cDJjs/NtnMBeEp8GiZpOElM6y wG0kdXZ3QwqBVn/X8iOiQmBiJ1JiLNK6eu5B9FMZfJVYOqnFvrQu0BBIO2zjBWB+LQin x90AcyOwJy29P5sDtrSZ2BH1UUzLf9lQyaX6Ph5+ttrCjAQG3/XAyDQQ4cyTaPXMLts5 Y9VjPVPRIyWBEZvhYLzkv+gCajOAso08pIB/coICKfG16wwAJnmrZPtk6594FF6D6MP0 LFeMZwENbSXhPnrg04AOquddPlLZeg73zzU2qeVSc1ZunsPNV7uUAcxBiddFeYVT2yxJ 1N0Q== 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=R3VKZk7ANLrajbjyIZIkbWQv3KcPJRE4raR0SfdiQq4=; fh=LruyahbjVMIdbB+JnKKCVZ8zocnkkp/6SVOzQ20og/0=; b=jBoO7iTRZLvLkF4D3gda6GnA84IiKISZR8TtsAl8ajnmCn473LrchyM70Bu8V75ZcW UE+yqIJIvlx4zo+RNvC10Pe+ix5P5ZrKH7GAR3LOIvP70ZF5eeEGyMdXycSBb1ODsec0 W996qpnieCjhYsoIQzRMBMy6/kbw/SO4PWs9Fkd/57cYXDSpe5aLk9EnhyzuT6xJRLTo IhR+dMXd+A65hNdIaqOPWI6J6zKtsndGDL3rzFB7pnpKR7MSvmA3EMGPMD9bMZXFpoQT uBcqisomiM//qP1L3D/WGLHkeE6Z17zJENw8gafIyFvLUDFH7LDkyHhEtvoeBGM08Z7b x6EQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GOyIHChA; 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 af79cd13be357-7b9ac53e6cbsi3757287085a.616.2025.01.03.15.18.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jan 2025 15:18:48 -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=GOyIHChA; 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 1tTqvn-0007iG-6I; Fri, 03 Jan 2025 18:18:15 -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 1tTqvl-0007hq-6e for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:13 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTqvh-0004Jo-QB for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:12 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4363ae65100so131443185e9.0 for ; Fri, 03 Jan 2025 15:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735946288; x=1736551088; 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=R3VKZk7ANLrajbjyIZIkbWQv3KcPJRE4raR0SfdiQq4=; b=GOyIHChAi691jApBr8m2r73VhB935aa7AOiidjNvlj1OgapK2vqf9qg2tzQUywIoyo TPP0KnflyKIv6xBexcec7iYFdc2jrZoOhaaid68qZyJrJfbjBXIQ4lS3wwrIV8RCLwBH yuZ/4OU32ccYOgnGlcyYY7uqz1DsIZwPtbdELaR4uAh7B6uUviqohSllTrM+r5oR+dFg F3KSW42XHpKpnSTUY93qW2q+nRLDSS4eU2G5Q+MFRIwuc+HV9qqBbYr8VSbFhjYpYZyi G2CwbRl4MjV+jDnCWi/0mi2CLLyoRasRV4ynMLH/QHI0O78QRU1aZwmRMnr9T0YpkDJU Tm+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735946288; x=1736551088; 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=R3VKZk7ANLrajbjyIZIkbWQv3KcPJRE4raR0SfdiQq4=; b=X0NR6r2yB6Su4lQvbsMKjnU9zcuqiN9AEHeLg6ZVSX0NydcayVArFRC13VKaXS9eS4 hANQd5w41fKjNW9Zzf5OP3rllVTCzqL1FjtJxJC6QClhN2Hnoe6KiHc9GXs3jKeF88/e CzPdtbWKCNMVWqVun7cNSYdNhOG+dzuLRVsflRDCW5oFnvDlVEWMR5Et3mPUMb3WfDEj rMEHVEgL6I4pKgJTo/29u2ufNOJV4T20mgJex0Gv1xtLiG1DZaOqKCuN8jKX6YbfS1j0 Q5sskxkAog7D0YKB4qG+NNiLtjDbynSK7+grXf9cIRkI2OWe/wLnQd8t3n815RU9BsQ+ PfJg== X-Gm-Message-State: AOJu0YzCR+OP1LeW+jdTwVqIVhT8qsDcHlUwoRsO64CQev+q5/uw01K9 hNP4xmPxoPJ6uPgPFpn78gQ6DzoFYzc8x+vkG/iDQrwzRwBKvCCluX9zJ56c/E3k31TRakGCToB RhFU= X-Gm-Gg: ASbGnct+dT04r9pdoePgWTk94ILhNmG2+alWIRfjRsM/7ExK+aHQjCrfsMDYQKOUyNg w7mgvclr0o1hCNd9CklhrWd6AWymQbSVnXh3+u3o8Ef7h14kVlW+5Z/buX3pQBPw2+L1PEAk3uc IomZWxMIEN2Zf2gz4bMEx06wL0tVlYjqpxRRD94VKqWgK+R3Eb9Prsvk7gt3wtQTQYbpglryZDx aWk3mvqQ+8qMWIkY79oB0GdPaN3JrlVIYGg4mpc9tQZVBlWKg9iuj1Uxe7s4YDSQ9Kj8hp7GORB X-Received: by 2002:a05:600c:3b13:b0:436:488f:4f5 with SMTP id 5b1f17b1804b1-4366864420bmr437574275e9.19.1735946287896; Fri, 03 Jan 2025 15:18:07 -0800 (PST) Received: from localhost.localdomain ([88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a67c77a90sm3692353f8f.54.2025.01.03.15.18.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Jan 2025 15:18:06 -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 4/6] disas: Have each system target select its disassembler Date: Sat, 4 Jan 2025 00:17:36 +0100 Message-ID: <20250103231738.65413-5-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::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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 change for host or user emulation. For system emulation, each target explicitly selects its disassembler. This change allows selecting more than two (host + target) disassemblers in a binary supporting multiple targets. Signed-off-by: Philippe Mathieu-Daudé --- meson.build | 3 ++- Kconfig | 1 + disas/Kconfig | 56 +++++++++++++++++++++++++++++++++++++++ target/alpha/Kconfig | 1 + target/avr/Kconfig | 1 + target/hexagon/Kconfig | 1 + target/hppa/Kconfig | 1 + target/i386/Kconfig | 1 + target/loongarch/Kconfig | 1 + target/m68k/Kconfig | 1 + target/microblaze/Kconfig | 1 + target/mips/Kconfig | 1 + target/openrisc/Kconfig | 1 + target/ppc/Kconfig | 1 + target/riscv/Kconfig | 2 ++ target/rx/Kconfig | 1 + target/s390x/Kconfig | 1 + target/sh4/Kconfig | 1 + target/sparc/Kconfig | 2 ++ target/tricore/Kconfig | 1 + target/xtensa/Kconfig | 1 + 21 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 disas/Kconfig diff --git a/meson.build b/meson.build index e62251c7ca3..a35ef579c28 100644 --- a/meson.build +++ b/meson.build @@ -3319,7 +3319,8 @@ foreach target : target_dirs endif foreach k, v: disassemblers - if host_arch.startswith(k) or config_target['TARGET_BASE_ARCH'].startswith(k) + if host_arch.startswith(k) \ + or (target.endswith('-user') and config_target['TARGET_BASE_ARCH'].startswith(k)) foreach sym: v config_target += { sym: 'y' } endforeach diff --git a/Kconfig b/Kconfig index 63ca7f46df7..d937ad3b7fe 100644 --- a/Kconfig +++ b/Kconfig @@ -1,6 +1,7 @@ source Kconfig.host source backends/Kconfig source accel/Kconfig +source disas/Kconfig source target/Kconfig source hw/Kconfig source semihosting/Kconfig diff --git a/disas/Kconfig b/disas/Kconfig new file mode 100644 index 00000000000..1d2c397c953 --- /dev/null +++ b/disas/Kconfig @@ -0,0 +1,56 @@ +config ALPHA_DIS + bool + +config ARM_DIS + bool + +config AVR_DIS + bool + +config HEXAGON_DIS + bool + +config HPPA_DIS + bool + +config I386_DIS + bool + +config LOONGARCH_DIS + bool + +config M68K_DIS + bool + +config MICROBLAZE_DIS + bool + +config MIPS_DIS + bool + +config OPENRISC_DIS + bool + +config PPC_DIS + bool + +config RISCV_DIS + bool + +config RX_DIS + bool + +config S390_DIS + bool + +config SH4_DIS + bool + +config SPARC_DIS + bool + +config TRICORE_DIS + bool + +config XTENSA_DIS + bool diff --git a/target/alpha/Kconfig b/target/alpha/Kconfig index 267222c05b8..1b9cc8077db 100644 --- a/target/alpha/Kconfig +++ b/target/alpha/Kconfig @@ -1,2 +1,3 @@ config ALPHA bool + select ALPHA_DIS diff --git a/target/avr/Kconfig b/target/avr/Kconfig index 155592d3537..7a7580c65f7 100644 --- a/target/avr/Kconfig +++ b/target/avr/Kconfig @@ -1,2 +1,3 @@ config AVR bool + select AVR_DIS diff --git a/target/hexagon/Kconfig b/target/hexagon/Kconfig index 7e556f35063..a96415fb2fa 100644 --- a/target/hexagon/Kconfig +++ b/target/hexagon/Kconfig @@ -1,2 +1,3 @@ config HEXAGON bool + select HEXAGON_DIS diff --git a/target/hppa/Kconfig b/target/hppa/Kconfig index 395a35d799c..e8fbdc02346 100644 --- a/target/hppa/Kconfig +++ b/target/hppa/Kconfig @@ -1,2 +1,3 @@ config HPPA bool + select HPPA_DIS diff --git a/target/i386/Kconfig b/target/i386/Kconfig index 6b0feef0299..af603c7cd3a 100644 --- a/target/i386/Kconfig +++ b/target/i386/Kconfig @@ -1,5 +1,6 @@ config I386 bool + select I386_DIS select APIC # kvm_arch_fixup_msi_route() needs to access PCIDevice select PCI if KVM diff --git a/target/loongarch/Kconfig b/target/loongarch/Kconfig index 46b26b1a857..690404b4a5a 100644 --- a/target/loongarch/Kconfig +++ b/target/loongarch/Kconfig @@ -1,2 +1,3 @@ config LOONGARCH64 bool + select LOONGARCH_DIS diff --git a/target/m68k/Kconfig b/target/m68k/Kconfig index 23aae24ebec..57cd896dd0e 100644 --- a/target/m68k/Kconfig +++ b/target/m68k/Kconfig @@ -1,3 +1,4 @@ config M68K bool + select M68K_DIS imply SEMIHOSTING if TCG diff --git a/target/microblaze/Kconfig b/target/microblaze/Kconfig index e91d58d88f2..09525a8e3ff 100644 --- a/target/microblaze/Kconfig +++ b/target/microblaze/Kconfig @@ -1,3 +1,4 @@ config MICROBLAZE bool + select MICROBLAZE_DIS select DEVICE_TREE # needed by boot.c diff --git a/target/mips/Kconfig b/target/mips/Kconfig index 876048b150c..74a220f410a 100644 --- a/target/mips/Kconfig +++ b/target/mips/Kconfig @@ -1,5 +1,6 @@ config MIPS bool + select MIPS_DIS imply SEMIHOSTING if TCG config MIPS64 diff --git a/target/openrisc/Kconfig b/target/openrisc/Kconfig index cd66c2e3b6c..7e3c092345c 100644 --- a/target/openrisc/Kconfig +++ b/target/openrisc/Kconfig @@ -1,3 +1,4 @@ config OPENRISC bool + select OPENRISC_DIS select DEVICE_TREE # needed by boot.c diff --git a/target/ppc/Kconfig b/target/ppc/Kconfig index 0283711673e..930337c4422 100644 --- a/target/ppc/Kconfig +++ b/target/ppc/Kconfig @@ -1,5 +1,6 @@ config PPC bool + select PPC_DIS config PPC64 bool diff --git a/target/riscv/Kconfig b/target/riscv/Kconfig index 11bc09b4146..f5cf6185a88 100644 --- a/target/riscv/Kconfig +++ b/target/riscv/Kconfig @@ -1,9 +1,11 @@ config RISCV32 bool + select RISCV_DIS select ARM_COMPATIBLE_SEMIHOSTING if TCG select DEVICE_TREE # needed by boot.c config RISCV64 bool + select RISCV_DIS select ARM_COMPATIBLE_SEMIHOSTING if TCG select DEVICE_TREE # needed by boot.c diff --git a/target/rx/Kconfig b/target/rx/Kconfig index aceb5ed28fe..c050315add7 100644 --- a/target/rx/Kconfig +++ b/target/rx/Kconfig @@ -1,2 +1,3 @@ config RX bool + select RX_DIS diff --git a/target/s390x/Kconfig b/target/s390x/Kconfig index 8a95f2bc3ff..51bb0afa446 100644 --- a/target/s390x/Kconfig +++ b/target/s390x/Kconfig @@ -1,5 +1,6 @@ config S390X bool + select S390_DIS select PCI select S390_FLIC diff --git a/target/sh4/Kconfig b/target/sh4/Kconfig index 93b92f1e480..6ecf3173361 100644 --- a/target/sh4/Kconfig +++ b/target/sh4/Kconfig @@ -1,4 +1,5 @@ config SH4 bool + select SH4_DIS # needed for sh_intc_get_pending_vector select SH_INTC diff --git a/target/sparc/Kconfig b/target/sparc/Kconfig index 70cc0f3a210..bcb53d964f0 100644 --- a/target/sparc/Kconfig +++ b/target/sparc/Kconfig @@ -1,5 +1,7 @@ config SPARC bool + select SPARC_DIS config SPARC64 bool + select SPARC_DIS diff --git a/target/tricore/Kconfig b/target/tricore/Kconfig index 93134093093..c7c5fa8b074 100644 --- a/target/tricore/Kconfig +++ b/target/tricore/Kconfig @@ -1,2 +1,3 @@ config TRICORE bool + select TRICORE_DIS diff --git a/target/xtensa/Kconfig b/target/xtensa/Kconfig index e8c2598c4d9..d54e3523401 100644 --- a/target/xtensa/Kconfig +++ b/target/xtensa/Kconfig @@ -1,3 +1,4 @@ config XTENSA bool imply SEMIHOSTING if TCG + select XTENSA_DIS From patchwork Fri Jan 3 23:17:37 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: 854884 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp8479386wrq; Fri, 3 Jan 2025 15:19:44 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVcfe0jRtaGVGhviPLPQRNEYJWOyrjBlHWlzoehXLOfTEtPl6hYdf2Wp2Fk3ot4RwH5gv+JjQ==@linaro.org X-Google-Smtp-Source: AGHT+IFL5GbDGF+JncP5MZ1SEIB9Wy6hrmh0jyL6rP90U6Mp5kA9Fg6BIlEgXkiDVLV8e5srz4XX X-Received: by 2002:ac8:7f8e:0:b0:467:64ef:9da6 with SMTP id d75a77b69052e-46a4a8add95mr895008111cf.10.1735946384037; Fri, 03 Jan 2025 15:19:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735946384; cv=none; d=google.com; s=arc-20240605; b=TDXfByPDkdx2ZZlnq3D0WgdZ+E/OcI9O+IxfaMLK5NpA3byOb+jpvoPtX63OJzh/8g NF6FSoLic9KoLMQJO6EdnwGNBYlyC9c/Q6MiwfsXkQANRNIzUlSEEFu3l3D/nf9U6MZ8 PwzABQRTh1gznPkLQP7W13Rq1Xt0H6NRKI5m9mcxv7TNq/jwLZl9W87WEaLG2AYXX1I9 0jDGdm/gtb5fmm8WCnr45g2X2niVh+YX6vuNf3Ohyq+LU2Nxihhmg4Fupt0XLrpEBBKg +CCdVL0ZAvrPiSgtVGGTtsrpMh7TRtzY+WMzExyhwx7grWLP2KOA0rBnOfsCuCbFYWLW s5Yw== 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=h0uWaX6niLnCBI/QUliR49aUFih24VSMjlfGu4d+wP8=; fh=LruyahbjVMIdbB+JnKKCVZ8zocnkkp/6SVOzQ20og/0=; b=BjTJjsPoJNOVOYgcJ8jctmyTNFlp3lU7T5Ld3HMJiTPuFepc7GMLu+R+HJRC17zcZP kccarI1ditG7A9lZ9dP73jEbYZpRFf5MJm6pbYSFlLYCOcVm79TqRdzFw8BbnMyTkGZC YgoKjlc18R4XGb4geK8rQvTI5ru9N3R1kGYyz0Wgt5vumWZgpIwvk8sqmLXKyDakYvdL cDHUOvGjAL+Skok9S1QMAwm1VSE01G6SoFe/5AupIfer08RFJts1A1kk6JxeyH/FWQeS qBG89Z+zf06P9a2HO2SydiVhoSNjkF6x5lclBEXzIfu8WMjiFcjXMsa8pDACQsE0Sgap a0xw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xg+mToEz; 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 d75a77b69052e-46a3e6a729esi395676551cf.147.2025.01.03.15.19.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jan 2025 15:19:43 -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=xg+mToEz; 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 1tTqvt-0007iq-1b; Fri, 03 Jan 2025 18:18:21 -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 1tTqvp-0007iR-Ou for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:18 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTqvo-0004KF-7I for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:17 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4361b0ec57aso126102815e9.0 for ; Fri, 03 Jan 2025 15:18:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735946294; x=1736551094; 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=h0uWaX6niLnCBI/QUliR49aUFih24VSMjlfGu4d+wP8=; b=xg+mToEzvB96rv7pvisNsdJ3soAmqL93UD8cmey5pvIZQW4deF7qbtIBUeF0fMQxny IbI8of7vfE9z/l6Nv6Sn/Vl8FcRhzBdYhmBzu4A86Wqvje9gdlVmdheiHNBiHD8sne0/ ulpLuJVRdmdouYGXa+mEhziaUsxexb8OsOdgQOkxocgZXIlVjieBiGkCTHUN9wFVrmuV 1v+2B6hnA3bL8QqqQZBf+TCGl5tgpAfw/9NO5Z6eQpd9dfGxAa9VDYbKrhBIXQXknOYQ KYDS4Yw/q/QrCUtJBsuTEjWEE5JYYQGGgF8ILcMBUlOvfzHecDCg1HsbqbSRSv5v9tjO uXSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735946294; x=1736551094; 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=h0uWaX6niLnCBI/QUliR49aUFih24VSMjlfGu4d+wP8=; b=v/uNQ8HQncxgQtnDpz/bu0xvjj06TDbSZRujYDxqDP8T8rEpBOE7ShcgAsMs+DqhSo uGQVswXtG7B1FQJIKfY/vi333/jgPPFRlAzsAxV/tdhEv2++2KzCg/J2Y9LTxSeCL4Gv 7h2f9filrUowEBnZX83AGTpHAegNuBo7E96CjqL+DTtsl9B+GCJgYnWezKI6DG9qXESy 2JTHKMeKNbluy8yN8B6pJAtbi7BIbqr6ODVgdvEl7HXxsEB27vBnXmXtvQReoB4r7Ia/ SCQDARiQEHh9paLJjH7E0pQWOXKwm1PAO76Dh8TELxTiloWpprY+RLIOf4eQjnV4fpC0 Bh8w== X-Gm-Message-State: AOJu0YwEyLvRQhRyptjaMHPzopmpxD6CTRKCBG/ksrULyrWrOXMxF/lh Hzt0pKq15Is9hwZzH8qKwWtnRzLcMgQybjX8kEJr+WLdFMjowuDgxSCa47M8t8jsGtqZntWsS8i IxGo= X-Gm-Gg: ASbGncv0km+Jr/TUFwBecg9G9ri661Qg2NYJx5jPaW51oIOvVZxlTqb11Hy87ybECdv NTKqhiZI7/4SrMPTFJrhruYFAuifW5dE7CNp5odYdR8M7ruGUTFLAW9sh+YVtmGR2M0sZ1twlRD pxZmIfG9etkZy6G1BvRty/Ly8GGQV/ETLaQKet2G/AupPISjNSmegGpHtcurzqv3u+O2ejLAAS3 QPzqLy3noEgQKsRqk7zkbGEMCM3FT7+xrIP1FjXq/8zJLvZq9lfRy3jYdWIhxMRAdp9KGjkGTPk YOLMctuwYMH4zM/Qn9hr79Jdzs/Im18= X-Received: by 2002:a05:600c:3b20:b0:434:9df4:5485 with SMTP id 5b1f17b1804b1-43668b76ae9mr375882515e9.32.1735946293538; Fri, 03 Jan 2025 15:18:13 -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-43661289d3dsm501780615e9.41.2025.01.03.15.18.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Jan 2025 15:18:13 -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 5/6] Kconfig: Expose host CONFIG_CAPSTONE definition Date: Sat, 4 Jan 2025 00:17:37 +0100 Message-ID: <20250103231738.65413-6-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::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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 Signed-off-by: Philippe Mathieu-Daudé --- meson.build | 1 + Kconfig.host | 3 +++ 2 files changed, 4 insertions(+) diff --git a/meson.build b/meson.build index a35ef579c28..28f9120a781 100644 --- a/meson.build +++ b/meson.build @@ -3224,6 +3224,7 @@ host_kconfig = \ (have_ivshmem ? ['CONFIG_IVSHMEM=y'] : []) + \ (opengl.found() ? ['CONFIG_OPENGL=y'] : []) + \ (libcbor.found() ? ['CONFIG_LIBCBOR=y'] : []) + \ + (capstone.found() ? ['CONFIG_CAPSTONE=y'] : []) + \ (gnutls.found() ? ['CONFIG_GNUTLS=y'] : []) + \ (x11.found() ? ['CONFIG_X11=y'] : []) + \ (fdt.found() ? ['CONFIG_FDT=y'] : []) + \ diff --git a/Kconfig.host b/Kconfig.host index 842cbe0d6c5..23b729db945 100644 --- a/Kconfig.host +++ b/Kconfig.host @@ -61,3 +61,6 @@ config HV_BALLOON_POSSIBLE config HAVE_RUST bool + +config CAPSTONE + bool From patchwork Fri Jan 3 23:17:38 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: 854882 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp8479183wrq; Fri, 3 Jan 2025 15:19:05 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVy0PoDBWjfJo9F8pTGGtCICC1JjGfOU22dk31foxyELt4agP4PwLYgCR0BRp4DZModiJlx0Q==@linaro.org X-Google-Smtp-Source: AGHT+IGqgN9bP5OyLhyNcEDkP6XKTBURUKJ/E8/n7LWlIj7sBjfQiO4IIJffuKSWj1rjnM/wwqCP X-Received: by 2002:a05:620a:29d0:b0:7b6:dfcf:3352 with SMTP id af79cd13be357-7b9ba7eca8fmr8494843685a.38.1735946345170; Fri, 03 Jan 2025 15:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735946345; cv=none; d=google.com; s=arc-20240605; b=WO3Bv1J8lAOl/h2i+3YnbvFrsAqgG/O1IdnloqwRXTPk32oaBsKTYvWgkRsTWf2UAW OFx4dD7OQQslqvPGezSALYRf5vt5C5l289QIaaG8zXZ8eIiIgsiK+lWp07Q3ng64olgx 3+719jiKvnJhfNohHrYGfKbYDGQ5wUdklZ8yuqaDTPLzOYd1dqabPuxpwZKz8kwgygZq JGjviE23B4UUHmPbGwWp/HJVxrwGU0iPRb/tpJQFSKZMv2NP4gKt9pPp8f7l3c/Xrd6x dhSZ2xiSnfeyJP7mKIBCfmMSTLOVNMnHdSRV4/LRYHxqS83W3P7NzmGQK6AksicX5R5G oHvQ== 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=NFgkKamr5QeIwstbRr7Q/p762wUgXwLu6RDwYB0Omtc=; fh=LruyahbjVMIdbB+JnKKCVZ8zocnkkp/6SVOzQ20og/0=; b=O4MBpNoFPyVVoA+sFP+Zpnvrt8WGJpj18WAJexUxrAYYeHRLXvMzx8xPfIsX2DOE/D eiUNot231vHH/1+DGXrvW4UXIPLo67drmMoXWCk4qHc+UEgnF90muh88Bja7pE+gYR10 lkzRUOPilGHOMYUrXu58tIINc1aJto3MtTcC71Ybu3OYvhB4oRJ/NNpWfKjLMjOlQp75 7QPeoU52ik+nPVMMF6N3lxZV8u4JKosAGUGFsUzHwIkgoJTcxaD02NdoNKUFn56sLucQ olq5R71wYa6df+4uH9kIpp4Z1lW6knWQ9Ff6hi/tXwTBopVJM+cr6Z9pXpUpdTjXLM45 6lvQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wXmEtYwp; 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 af79cd13be357-7b9ac4dedd9si3850018985a.457.2025.01.03.15.19.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jan 2025 15:19:05 -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=wXmEtYwp; 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 1tTqvx-0007jL-7n; Fri, 03 Jan 2025 18:18:25 -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 1tTqvv-0007iz-EK for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:23 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTqvs-0004Kl-Sk for qemu-devel@nongnu.org; Fri, 03 Jan 2025 18:18:22 -0500 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-385df53e559so9964141f8f.3 for ; Fri, 03 Jan 2025 15:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735946299; x=1736551099; 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=NFgkKamr5QeIwstbRr7Q/p762wUgXwLu6RDwYB0Omtc=; b=wXmEtYwpUMEXiLKSfOddrl9CtuYv1JGRQNJdlMuIaFnn3t/dbsd/YMXZka0bixAGxX YJg29PVXP+n8S5JWwHUx6SLYXeUTTFxZdKt0FtFCIlvKly4Ui9X+FqzvoZSp1zn8KrZ2 9H5v0lFMSSgBWmTbOSGpnAaWIAAUTOaHKlGsKzk0qlcAGZdl+Zd9wQIAxrz6Z/c+dQ2h jJz/+69kznjx8tJpvl3eT27EKvX9QMazZmVL8fSs2LOlEETus/JLSM0UwLZo0XqjDaUb O5vUphD24q6ZQmGzfRYqGRWx763EtXIezJY+VN/dWCaQbWZEzIf8dcFJgEOFncS3uVvw /0Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735946299; x=1736551099; 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=NFgkKamr5QeIwstbRr7Q/p762wUgXwLu6RDwYB0Omtc=; b=t2n7aLFY7iv2W2hBWq5Jzc2+sKJJ+sQfq5RObdTP1yyZVaxqeYq/ZJJ+mo8FhhLhSg k7B1/coBx3VhrRHG3nM31nsNr3PM+epUM+sjuCXuPhfOSKYLNYDiH8uCqjseKoZrD8k6 cqx2vzELo6ya1GgdAGFbFgq+dBxaZQzv96yHjLkkD1BLBTm6jXuac0cqf1Z4Hx8QGzVZ lQjn5gakdzre2nUvOCh008Kss72YApoJBhaGHGPPnn7fBFwu4C2AC4iugP0Qy0ZrzljY QUlmLDF9B1tJddjfQcrSDzDJUArob020F+hUktiWDQ3SSekoWogFUnwACBkok7L9fP// wmiQ== X-Gm-Message-State: AOJu0Yy/Ldu1LG6jQjoIpLuwXi9VF8IcSxtkkWYGmv1Zk2a1QdF8WV1L l/j1lPd6FsyA5rdUfsdMrUkflTLi8ni0KCu2ud5IhQh94ojJqtn3IZepk8Y7oDZOaVniMG0XpnD QDfU= X-Gm-Gg: ASbGncshij/ql4RqlGGUw+F598Sps47yfbsAcr+YIOI1qACNqlfIf/lGe3Na+QgI6HM fYvZUViokp9bdWJSjq5BPJI7qjatGcEcUt65nJiUQpdnmXiesFRRdRIFqVdEN8yG3TstFwn64N3 YplAs8I+mWw62OZ1fmE7NMxd8szAFW383/v5bdg3W+XslNH2WKWYSowvxv1GZij7vGHUOIcw0px I/EcBNe2TpgpFrsqkkeRwIeZrJ8nuMO4LioZxWOp8hGE+GCln83BsYPqCJObs31nKpbitLxPH7T q5NSIVrtRbwI/QvWA3gC1C1G547+zMQ= X-Received: by 2002:a5d:64a3:0:b0:385:f527:be6d with SMTP id ffacd0b85a97d-38a2240074fmr41498707f8f.36.1735946298953; Fri, 03 Jan 2025 15:18:18 -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-38a2e25edbbsm34109746f8f.110.2025.01.03.15.18.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Jan 2025 15:18:18 -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 6/6] disas: Select capstone targets by default Date: Sat, 4 Jan 2025 00:17:38 +0100 Message-ID: <20250103231738.65413-7-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::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.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 When capstone is available, we get ARM/X86/PPC/S390X disassemblers in common_ss[] for free. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson --- disas/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/disas/Kconfig b/disas/Kconfig index 1d2c397c953..8af8ecd5c81 100644 --- a/disas/Kconfig +++ b/disas/Kconfig @@ -3,6 +3,7 @@ config ALPHA_DIS config ARM_DIS bool + default y if CAPSTONE config AVR_DIS bool @@ -15,6 +16,7 @@ config HPPA_DIS config I386_DIS bool + default y if CAPSTONE config LOONGARCH_DIS bool @@ -33,6 +35,7 @@ config OPENRISC_DIS config PPC_DIS bool + default y if CAPSTONE config RISCV_DIS bool @@ -42,6 +45,7 @@ config RX_DIS config S390_DIS bool + default y if CAPSTONE config SH4_DIS bool