From patchwork Sat May 20 16:26:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 684319 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp448901wrt; Sat, 20 May 2023 09:31:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nKA9mgYzsoz6VWJO4DpGPHaIlVeO+9A4wdJJbTt4tHz2hreCFomAgvY9t9nuDvvY33lqF X-Received: by 2002:ac8:5f8f:0:b0:3f3:9526:42fb with SMTP id j15-20020ac85f8f000000b003f3952642fbmr11337664qta.12.1684600287392; Sat, 20 May 2023 09:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684600287; cv=none; d=google.com; s=arc-20160816; b=E7h+8KBcGPTEIz3jN59/6G6z/2+OmlILmCY4hC8OmEjQDC5TKEXO7OwLUJ8WVW++6f JAEEWinMv51xemjp6lm0wWFjwUzY9y5SEXVL02XMbdBbC35781WuNf6c5LeY+3zOhtHW E3jFnFbbhpxQ47Zt9H1ae+jigxEY8JkCdRmt3p/RotY/Z2vBHnFrQkUvibgxZr1jw4dB RHwOKrn1D2ht/TTZafqk41LzJTESPxW0kC1nsD/m2XM0fvj0PLdzcaI+lh4iw6s4T8Xi 1ynQx9MX2xzJ1T7UiF1lsX6Z/F7HDGl18VN3t1aIsFMbwbd3AiKoDaL7nav71MucmOjz lYAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=qoslcpBGrNylzkKTGRsE4PymBBD7m5mdTsORg0M/q+0=; b=FR2lvwu0f30bITH23XoX+PylZ1BIUeZPrAE+Juidhy1tHNEPPMFZwXo1PhiJgbo/PZ D3KU79j+VXfzjQM+loS8MYs3Lhbztli3GTheu2WXy32B/mi4URAE7EgGf0L9jeS+Y15V QEGIpi/svP/ddJslJpUxvEtgz4DI721uWzyIhNf7RJ9EPrqP/cr+wrFtMiKfP//CB+Qq sRdjURXUSwC/6Mu06+b6T570op7gDv6IyOo/xUiLGPguJmwPkQ5mgy5w8/ORyUs8G1Jp G1UxhFVNdUyxV0aqh+t4aS/jHz7UFRZp+00Z1PoehSpsBXOQBMTEldR1DaG/4ZQGhdxL eJTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T64ArRbU; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r13-20020ac85c8d000000b003e970fedc49si1346706qta.51.2023.05.20.09.31.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 May 2023 09:31:27 -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=T64ArRbU; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0PPn-0003Wq-9W; Sat, 20 May 2023 12:26:43 -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 1q0PPl-0003VA-PK for qemu-devel@nongnu.org; Sat, 20 May 2023 12:26:41 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0PPi-000349-I9 for qemu-devel@nongnu.org; Sat, 20 May 2023 12:26:41 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1ae507af2e5so14196295ad.1 for ; Sat, 20 May 2023 09:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684599997; x=1687191997; 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=qoslcpBGrNylzkKTGRsE4PymBBD7m5mdTsORg0M/q+0=; b=T64ArRbUugSqIW7icPZKpZ9mqaN+wHRWLTFNW+h7CUqPl8ADdAGpTHdprrVGukBILX HKp4EAvdyZRK6GTkExyn3zJU9f1bfajV/tOTa9JYHgC2iO42w4BkODy8ShVHlIPGvhwL zow1U/aif9AhGdkFlMYiGXPHNuIHpUdBMVjg7neSb9/UP9ZCFmc+LsyA1tB0+NNw+gdm XtyXJ62o7QRIO0btYuaCxr4StKwEHqJWiMl19/Bj1n8VPTMReQv222t1T5hxEayH4/Z+ hoUh7ZTkFceww5lYUJF0AaFnFCAkKAxoUiZkttYzzvgSOtqj4Ce5KxhSyR3wg7PT7weB MtWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684599997; x=1687191997; 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=qoslcpBGrNylzkKTGRsE4PymBBD7m5mdTsORg0M/q+0=; b=GpNUS/VqMOd+1euOWqD1Dj0XeUDsyJi+2+GyFJokXRPaGG8GvXlAxhcCqXFZFmigZX NGjFhYAA43L5kN4qvxKpBfA0TKyPJSR8PIXPsYdD3FayA9FdlJWB4YtKzzy9KMoThj58 4gKge1WA4b0PbeUV+nUlII+cP91n7ies4r00KEeWKaOiQT+M3A/gWc0eepxnEEwBmpUm PfPyXHaNe9OLWcMbADJOGlP/AJ0Uw4gq3j9UOAnADm+DnY3WHd1KkbRPxH7+wznHdYv6 fgd4YNso6X2tYp/LN8xIRr9B/aCTZLJQtmJRICzyEFSZRmZmJiWUNB/0yB/+XRkhEvPw Ukgg== X-Gm-Message-State: AC+VfDzvhODP1RBVGwz9HsnRz5rJiatEs8i726ONDF0oN7IJ1rwiBJY1 5YUoRMlFrTx7UN4QqN5eztYPUllUzXRKXGKOBk4= X-Received: by 2002:a17:903:2444:b0:1a6:9762:6eed with SMTP id l4-20020a170903244400b001a697626eedmr7579258pls.22.1684599997354; Sat, 20 May 2023 09:26:37 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:d078:d94e:cb2b:a055]) by smtp.gmail.com with ESMTPSA id d12-20020a170903230c00b001a5260a6e6csm1697104plh.206.2023.05.20.09.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 09:26:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Juan Quintela Subject: [PATCH 01/27] util: Introduce host-specific cpuinfo.h Date: Sat, 20 May 2023 09:26:08 -0700 Message-Id: <20230520162634.3991009-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230520162634.3991009-1-richard.henderson@linaro.org> References: <20230520162634.3991009-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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, T_SCC_BODY_TEXT_LINE=-0.01 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 entire contents of the header is host-specific, but the existence of such a header is not, which could prevent some host specific ifdefs at the top of the file for the include. Add host/include/{arch,generic} to the project arguments. Reviewed-by: Juan Quintela Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée --- host/include/generic/host/cpuinfo.h | 4 ++++ meson.build | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 host/include/generic/host/cpuinfo.h diff --git a/host/include/generic/host/cpuinfo.h b/host/include/generic/host/cpuinfo.h new file mode 100644 index 0000000000..eca672064a --- /dev/null +++ b/host/include/generic/host/cpuinfo.h @@ -0,0 +1,4 @@ +/* + * No host specific cpu indentification. + * SPDX-License-Identifier: GPL-2.0-or-later + */ diff --git a/meson.build b/meson.build index 0a5cdefd4d..4ffc0d3e59 100644 --- a/meson.build +++ b/meson.build @@ -512,6 +512,14 @@ add_project_arguments('-iquote', '.', '-iquote', meson.current_source_dir() / 'include', language: all_languages) +host_include = meson.current_source_dir() / 'host/include/' +if fs.is_dir(host_include / host_arch) + add_project_arguments('-iquote', host_include / host_arch, + language: all_languages) +endif +add_project_arguments('-iquote', host_include / 'generic', + language: all_languages) + sparse = find_program('cgcc', required: get_option('sparse')) if sparse.found() run_target('sparse',