qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blauwirbel@gmail.com>
Subject: Re: [Qemu-devel] [PATCH, RFC] Smarter compilation for target devices
Date: Tue, 28 Apr 2009 14:32:41 +0100	[thread overview]
Message-ID: <200904281432.42291.paul@codesourcery.com> (raw)
In-Reply-To: <f43fc5580904221234l22c4e5f8h7362e8e9adee0b49@mail.gmail.com>

> Compile target devices only once for each endian and word size combination,
> saving a few compiles if large number of targets are enabled.

> +CPPFLAGS=-I. -I.. -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H

> +# Warning: Do not add new files here if they have conditional code
> +# with #ifdef TARGET_xxx etc, use TARGET_PAGE_SIZE or reference
> +# CPUState

This is just asking for trouble. Anything that includes cpu.h must be rebuilt 
for every cpu.  IMO a necessary prerequisite for this change is reworking 
header files so that you can't accidentally use the wrong symbols.

Also, which bitwidth are you intending to distinguish here? target_ulong or 
target_phys_addr_t? With a few exceptions, devices don't care about the 
former. Duplicating this logic is both cpu.h and configure is also asking for 
trouble. At minimum the build should fail if they disagree.

Paul

  reply	other threads:[~2009-04-28 13:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22 19:34 [Qemu-devel] [PATCH, RFC] Smarter compilation for target devices Blue Swirl
2009-04-28 13:32 ` Paul Brook [this message]
2009-04-28 16:18   ` Blue Swirl
2009-04-28 17:25     ` Paul Brook

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=200904281432.42291.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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).