From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1F11C77B7A for ; Thu, 18 May 2023 04:43:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzVRt-00066h-1j; Thu, 18 May 2023 00:41: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 1pzVRr-00066G-KF for qemu-devel@nongnu.org; Thu, 18 May 2023 00:41:07 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pzVRm-000771-RF for qemu-devel@nongnu.org; Thu, 18 May 2023 00:41:05 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1aaef97652fso12626555ad.0 for ; Wed, 17 May 2023 21:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684384861; x=1686976861; 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=8+ScMm8RFAy9abD2OYSsuUTJ0MCbN7DfgykRl5CDnnQ=; b=iqm5RAMSsA1ukUGs634BKvHD1LhxdaUqvqXv8dY6719b9d/SDa/PciLRJWk1NY5JS1 l2oSD7QqWde8Hewr1Itw/6B5eTybnrv9D8DjESr5rA7O6P2wSI6fxD5ehibVPCytDSVa RTr+grAMVEQ4MfMVd1XJ7Q87MvlQOgCKM6lnSwUIkY315BfihHSre6JsmrudYZp1/cbQ zWgFAmURH3wDNkTYQwE8zR/+gojPf+MnXFiKO+bqu/68NqzJiLrlTZ4ZfJwt/Qb0siDj bNYkfbVS1Mjwve778ueHPRSu3Tr8QYatnBRNUjIXP2rIwejnKQhsgbWOvz+L63OpSPI8 rXKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684384861; x=1686976861; 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=8+ScMm8RFAy9abD2OYSsuUTJ0MCbN7DfgykRl5CDnnQ=; b=NAmtiQv1tSyOt7i/HSFY3cTEosSuZkuR0OdyNRNY2KS3viTC4px1DztMYqdCveHkTP qe/LKWZtI5Jgr//ur0AjJ5uEPMy/wL83v5ZanbLoymXYjeuwFqK1tJdrCUowfxUhZMj4 tZ/aodF2BUNMwgWBTO3qccVQ83nBxpTf18TkRknE7yyRnTz5+cxvkSGVw6udthf73d2U V7tfZjNx1hmXWP05XLlKn5tx+ZLRHOeKc3EgR5QS/mR5iKI/FU5zTlmZKQuf2/ZJFNPm At8PTO/owW5w4Ay+5dFoB8f5rtltaV0GL9C7TMADPTFbIySoJUGb+HywurYzeqRtunvh o10A== X-Gm-Message-State: AC+VfDw0NhMwM+KKw1U56WIThkjcN/E9rg6ktwbXzN95JnXM8wa4pQjx 9Gsx5EJwdA19PnzIne8BO95DbSJq032/7eSsQBo= X-Google-Smtp-Source: ACHHUZ64Gj/vll5hY4LzMz7NuhglArzWOt8GXlMognEW6BiQs/5ah0JCjkoRyuarS154oFhs7jHppA== X-Received: by 2002:a17:902:d2c2:b0:1ac:61ad:d6bd with SMTP id n2-20020a170902d2c200b001ac61add6bdmr1314610plc.65.1684384861405; Wed, 17 May 2023 21:41:01 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:17a4:1aa0:c49d:e8f7]) by smtp.gmail.com with ESMTPSA id t9-20020a170902e84900b001ab1d23bf5dsm225592plg.258.2023.05.17.21.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 21:41:00 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/9] util: Introduce host-specific cpuinfo.h Date: Wed, 17 May 2023 21:40:50 -0700 Message-Id: <20230518044058.2777467-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230518044058.2777467-1-richard.henderson@linaro.org> References: <20230518044058.2777467-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.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 include/host/{arch,generic} to the project arguments. Signed-off-by: Richard Henderson --- Cc: Paolo Bonzini (maintainer:Meson) Cc: "Marc-André Lureau" (reviewer:Meson) Cc: "Daniel P. Berrangé" (reviewer:Meson) Cc: Thomas Huth (reviewer:Meson) Cc: "Philippe Mathieu-Daudé" (reviewer:Meson) --- include/host/generic/cpuinfo.h | 4 ++++ meson.build | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 include/host/generic/cpuinfo.h diff --git a/include/host/generic/cpuinfo.h b/include/host/generic/cpuinfo.h new file mode 100644 index 0000000000..eca672064a --- /dev/null +++ b/include/host/generic/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 4dddccb890..0dd806e8a5 100644 --- a/meson.build +++ b/meson.build @@ -292,6 +292,14 @@ add_project_arguments('-iquote', '.', '-iquote', meson.current_source_dir() / 'include', language: all_languages) +include_host = meson.current_source_dir() / 'include/host/' +if fs.is_dir(include_host / host_arch) + add_project_arguments('-iquote', include_host / host_arch, + language: all_languages) +endif +add_project_arguments('-iquote', include_host / 'generic', + language: all_languages) + sparse = find_program('cgcc', required: get_option('sparse')) if sparse.found() run_target('sparse', -- 2.34.1