qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH 1/9] util: Introduce host-specific cpuinfo.h
Date: Wed, 17 May 2023 21:40:50 -0700	[thread overview]
Message-ID: <20230518044058.2777467-2-richard.henderson@linaro.org> (raw)
In-Reply-To: <20230518044058.2777467-1-richard.henderson@linaro.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 <richard.henderson@linaro.org>
---
Cc: Paolo Bonzini <pbonzini@redhat.com> (maintainer:Meson)
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com> (reviewer:Meson)
Cc: "Daniel P. Berrangé" <berrange@redhat.com> (reviewer:Meson)
Cc: Thomas Huth <thuth@redhat.com> (reviewer:Meson)
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org> (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



  reply	other threads:[~2023-05-18  4:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-18  4:40 [PATCH 0/9] Host-specific includes, begin cpuinfo.h Richard Henderson
2023-05-18  4:40 ` Richard Henderson [this message]
2023-05-18  9:30   ` [PATCH 1/9] util: Introduce host-specific cpuinfo.h Juan Quintela
2023-05-18  4:40 ` [PATCH 2/9] util: Add cpuinfo-i386.c Richard Henderson
2023-05-18  9:35   ` Juan Quintela
2023-05-18 12:45     ` Richard Henderson
2023-05-18  4:40 ` [PATCH 3/9] util: Add i386 CPUINFO_ATOMIC_VMOVDQU Richard Henderson
2023-05-18 15:52   ` Peter Maydell
2023-05-18  4:40 ` [PATCH 4/9] tcg/i386: Use cpuinfo.h Richard Henderson
2023-05-18 15:53   ` Peter Maydell
2023-05-18  4:40 ` [PATCH 5/9] util/bufferiszero: Use i386 cpuinfo.h Richard Henderson
2023-05-18  9:49   ` Juan Quintela
2023-05-18 12:48     ` Richard Henderson
2023-05-18  4:40 ` [PATCH 6/9] migration/xbzrle: Shuffle function order Richard Henderson
2023-05-18  9:19   ` Juan Quintela
2023-05-18  4:40 ` [PATCH 7/9] migration/xbzrle: Use i386 cacheinfo.h Richard Henderson
2023-05-18  9:44   ` Juan Quintela
2023-05-18  4:40 ` [PATCH 8/9] migration: Build migration_files once Richard Henderson
2023-05-18  9:20   ` Juan Quintela
2023-05-18  4:40 ` [PATCH 9/9] util: Add cpuinfo-aarch64.c Richard Henderson
2023-05-18 15:55   ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230518044058.2777467-2-richard.henderson@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=berrange@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).