From patchwork Wed May 7 23:42:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 888179 Delivered-To: patch@linaro.org Received: by 2002:a5d:4683:0:b0:38f:210b:807b with SMTP id u3csp634619wrq; Wed, 7 May 2025 16:52:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVTuAVEk30bKw6+0HNxBST9BZo6ZXnZdKzq/yWks5K6VkuD6k8z1TTc4OgWbUFqh/LWSX7sEA==@linaro.org X-Google-Smtp-Source: AGHT+IELAFAPbiiN/UIlIab0heM1PrxI25xDBXN154Dt5hIL9GPQACi5wxbFP5wLXAGcgLOQzy1o X-Received: by 2002:ac8:7fc8:0:b0:48c:428c:5b5b with SMTP id d75a77b69052e-49225a40452mr83902081cf.1.1746661971453; Wed, 07 May 2025 16:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746661971; cv=none; d=google.com; s=arc-20240605; b=lu1Z/RJLYLAeEnNSDkcFzm7oPxaQoGCWBYYOLd7i+iCZgeOcrIk1Fk/664OddPQfvm lT/w+4azdPDquBGc2tbTZ875IwWACOOJ6JxAM/wWdYKRtXfapL4uOAzX1P/grSj1N1vO 9Yvbtb7YJ/Lu5oYuKhoYGzYHt8Ydy/i0C21RFs1a4whjvNLdRxmvAMtyHRe1zbFt94px 5kdsBZlQxVAp1empP/qBDtb4STkggGu4GQEycfN0FteepU2wYh9xAlMrBdv6YtXBi6eK FsW2JALlFo9nAqwvt3HMaXm82JC2Bih/aJcsqQcoPY8I1wtR5QLQGOsKpWetnka6om3J TElQ== 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=mduWzGcqrbCCMCYuVdtTD2ZBid0+LWN3eUl0cLQ5HO8=; fh=Zbxy5TRiDd+Eff0zsN+2XmZYe/TihsWpxb97dHV4h78=; b=WqVuLjmfUM7a9NUlWD/AFfCjWZ5ONXGAssRvjKB2l53VQuSWCPfNqYv9xeKFvei3W6 0PycOvLAAAFS3DErzlRk5r3Sy+vjv6LUwYcRLsKXeEtZWm8kDHcMHTJxPTK58Jp0FFdP W7vrPCOmxr20Icr5liuI5lwf8BelV/A8p4qCYNxVBj4vf7928CKznJ6FP/bT6wddC6FS WCyRKvS9sryMmzl7L+Q8jHOdC8Yk9kTW218AAkYQm3b4DYFiKSFFA1A2CgYR1up54DlH EQwDygJh6BYKr0jkoBqmWthPRm/RtOTHX2WLN+FUbFJg8aY3KKnhRjs8NOqWmTdDXo70 9VKQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gpa/51Y/"; 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-4922354d814si30708161cf.602.2025.05.07.16.52.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 May 2025 16:52:51 -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="gpa/51Y/"; 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 1uCoPt-000076-2B; Wed, 07 May 2025 19:43:09 -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 1uCoPg-0008Gq-QG for qemu-devel@nongnu.org; Wed, 07 May 2025 19:42:56 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uCoPe-0002TI-Vz for qemu-devel@nongnu.org; Wed, 07 May 2025 19:42:56 -0400 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2ff6cf448b8so603497a91.3 for ; Wed, 07 May 2025 16:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746661373; x=1747266173; 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=mduWzGcqrbCCMCYuVdtTD2ZBid0+LWN3eUl0cLQ5HO8=; b=gpa/51Y/gUuaX2w3TS30N5fxX99odMZXAiYAvnPfxTWzQWbIEkqPUzc1YDrRdcyq4h PVmCD/CKtz25hT1y6KRZlrz5FyVi/pBaIvLsW8SiGkQFTwS5XuJPxjjt2YzWx+Idz4s3 98z2FHElIfxTnh1VEpzEYuHG4Pz7Z96nKrPcyVVNAyiPqcINpBUW5qYbYXn08AGOUi91 QqkBn7w5Q7sOxmwCZ0Ksk1r35AmShLDVj+y+l6fdv9PA9FuYDvvNQpQq2RFoTcZ8WluS pplf9j/UMjrOrinb2rl3sFzed6MYf20sGU1kLhwiZFOA+7z5m9Ok9ChpmrW/3ppoucjJ KnHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746661373; x=1747266173; 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=mduWzGcqrbCCMCYuVdtTD2ZBid0+LWN3eUl0cLQ5HO8=; b=A1g3PfXgN46Nc4YLWIFq8RWLp6PI5sMsWhu4Q0uocY2LVntjG7I1E269HKrvtTmBc3 cm1aeFMNSC1ORVA8WLnSynIF4Fntru1b+XkmTTi5YfhjZDmPrU+Nq0K9ZQpFuZpaZ6pm OlZkEgyhC4qsrdSwrSzhI9bXMi4RwUXXyuf9ljmcI7mKt0IeBJc3p4kuepVgf9xGD2sa mIsJ92NBzAl/ejw2oYP5TJ8p57PJQcCgIXBnUZHQweS2S/IbJAK2qYUvxzChve6dQOQc OA5fBsN+X8awp0pJhErTAK7Kj7uh+Uu8SoS249e10LyQ1rvoB8aP0mbCv/hKL6P5HJXX cGtA== X-Gm-Message-State: AOJu0YyqXHQpQLwlIqPIQwblmPvs4i48E1rFpJ1Qne10jPT0WJ2PiPGK 65r2lJybGB1/TeColkqzpXFZbS3lrmw7zCPqdMIed6+qCLHjTsWMPo6CyQfscmqQehCcA0hNLKY Gpl8VmA== X-Gm-Gg: ASbGnctn+eKzzyHtaLuQnv+Sg8M0veMEUGkVl5D4rzxPrAi1ofLy4Ew9acSwCE3oWVQ T72ZO3MljF9uQz0zpKukApuEtvQV3ezFDGYG5INl363LDBVOETXxu/4tdvWmOwvZ/7zmTzrIdRo /MF4xTOZDB07qj3zB3riEzduBsz0C9FLNpJXzbtOWohS1lMz+rwP0k5uDnteDl2wtzxcjOXmY/f oGLhZ25q+/DKYuODn7/x3okETpEMMSDGF0sDuCaq9+k9k0aqTZmzkjKCzZEewlrGCIYc1Ot/4DQ XjaJGkHk2lOeIfumVIu0HPMX1njfHXAAD+oco1yR X-Received: by 2002:a17:90b:38c6:b0:2fe:b174:31fe with SMTP id 98e67ed59e1d1-30aac18622dmr7695290a91.2.1746661372934; Wed, 07 May 2025 16:42:52 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e815806fdsm6491325ad.17.2025.05.07.16.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 May 2025 16:42:52 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, anjo@rev.ng, Peter Maydell , Richard Henderson , alex.bennee@linaro.org, Paolo Bonzini , kvm@vger.kernel.org, =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v7 11/49] target/arm/cpu: compile file twice (user, system) only Date: Wed, 7 May 2025 16:42:02 -0700 Message-ID: <20250507234241.957746-12-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250507234241.957746-1-pierrick.bouvier@linaro.org> References: <20250507234241.957746-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1035.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- target/arm/meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/target/arm/meson.build b/target/arm/meson.build index c39ddc4427b..89e305eb56a 100644 --- a/target/arm/meson.build +++ b/target/arm/meson.build @@ -1,6 +1,6 @@ arm_ss = ss.source_set() +arm_common_ss = ss.source_set() arm_ss.add(files( - 'cpu.c', 'debug_helper.c', 'gdbstub.c', 'helper.c', @@ -20,6 +20,7 @@ arm_ss.add(when: 'TARGET_AARCH64', ) arm_system_ss = ss.source_set() +arm_common_system_ss = ss.source_set() arm_system_ss.add(files( 'arch_dump.c', 'arm-powerctl.c', @@ -30,6 +31,9 @@ arm_system_ss.add(files( )) arm_user_ss = ss.source_set() +arm_user_ss.add(files('cpu.c')) + +arm_common_system_ss.add(files('cpu.c'), capstone) subdir('hvf') @@ -42,3 +46,5 @@ endif target_arch += {'arm': arm_ss} target_system_arch += {'arm': arm_system_ss} target_user_arch += {'arm': arm_user_ss} +target_common_arch += {'arm': arm_common_ss} +target_common_system_arch += {'arm': arm_common_system_ss}