qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Claudio Fontana <cfontana@suse.de>
To: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Eduardo Habkost" <ehabkost@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>
Cc: "Laurent Vivier" <lvivier@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>,
	qemu-devel@nongnu.org, "Roman Bolshakov" <r.bolshakov@yadro.com>,
	"Claudio Fontana" <cfontana@suse.de>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: [RFC v17 06/14] meson: add target_user_arch
Date: Wed, 10 Feb 2021 16:28:51 +0100	[thread overview]
Message-ID: <20210210152859.25920-7-cfontana@suse.de> (raw)
In-Reply-To: <20210210152859.25920-1-cfontana@suse.de>

the lack of target_user_arch makes it hard to fully leverage the
build system in order to separate user code from softmmu code.

Provide it, so that we can avoid the proliferation of #ifdef
in target code.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
 meson.build | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meson.build b/meson.build
index e3ef660670..a1582e0cbc 100644
--- a/meson.build
+++ b/meson.build
@@ -1733,6 +1733,7 @@ modules = {}
 hw_arch = {}
 target_arch = {}
 target_softmmu_arch = {}
+target_user_arch = {}
 
 ###############
 # Trace files #
@@ -2129,6 +2130,10 @@ foreach target : target_dirs
     abi = config_target['TARGET_ABI_DIR']
     target_type='user'
     qemu_target_name = 'qemu-' + target_name
+    t = target_user_arch[arch].apply(config_target, strict: false)
+    arch_srcs += t.sources()
+    arch_deps += t.dependencies()
+
     if 'CONFIG_LINUX_USER' in config_target
       base_dir = 'linux-user'
       target_inc += include_directories('linux-user/host/' / config_host['ARCH'])
-- 
2.26.2



  parent reply	other threads:[~2021-02-10 15:33 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-10 15:28 [RFC v17 00/14] i386 cleanup PART 2 Claudio Fontana
2021-02-10 15:28 ` [RFC v17 01/14] i386: split cpu accelerators from cpu.c, using AccelCPUClass Claudio Fontana
2021-02-10 15:28 ` [RFC v17 02/14] cpu: call AccelCPUClass::cpu_realizefn in cpu_exec_realizefn Claudio Fontana
2021-02-10 15:28 ` [RFC v17 03/14] accel: introduce new accessor functions Claudio Fontana
2021-02-10 15:28 ` [RFC v17 04/14] target/i386: fix host_cpu_adjust_phys_bits error handling Claudio Fontana
2021-02-10 15:28 ` [RFC v17 05/14] accel-cpu: make cpu_realizefn return a bool Claudio Fontana
2021-02-10 15:28 ` Claudio Fontana [this message]
2021-02-10 15:28 ` [RFC v17 07/14] i386: split user and softmmu functionality in tcg-cpu Claudio Fontana
2021-02-10 15:28 ` [RFC v17 08/14] i386: split smm helper (softmmu) Claudio Fontana
2021-02-10 15:28 ` [RFC v17 09/14] i386: split tcg excp_helper into softmmu and user parts Claudio Fontana
2021-02-10 15:28 ` [RFC v17 10/14] i386: split tcg btp_helper " Claudio Fontana
2021-02-10 16:28   ` Alex Bennée
2021-02-11 10:07     ` Claudio Fontana
2021-02-11 10:39       ` Philippe Mathieu-Daudé
2021-02-11 11:48         ` Claudio Fontana
2021-02-10 15:28 ` [RFC v17 11/14] i386: split misc helper into user and softmmu parts Claudio Fontana
2021-02-10 15:28 ` [RFC v17 12/14] i386: separate fpu_helper " Claudio Fontana
2021-02-10 15:28 ` [RFC v17 13/14] i386: slit svm_helper into softmmu and stub-only user Claudio Fontana
2021-02-10 15:28 ` [RFC v17 14/14] i386: split seg_helper into user-only and softmmu parts Claudio Fontana
2021-02-11 11:11 ` [RFC v17 00/14] i386 cleanup PART 2 no-reply

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=20210210152859.25920-7-cfontana@suse.de \
    --to=cfontana@suse.de \
    --cc=alex.bennee@linaro.org \
    --cc=ehabkost@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=r.bolshakov@yadro.com \
    --cc=richard.henderson@linaro.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).