From: Stuart Brady <sdbrady@ntlworld.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH 09/13] TARGET_ARCH2 is already known at configure time and it is called target_cpu Remove re-construction in Makefile.target
Date: Wed, 1 Jul 2009 20:30:38 +0100 [thread overview]
Message-ID: <20090701193037.GA11528@miranda.arrow> (raw)
In-Reply-To: <m3d48k8dt3.fsf@neno.mitica>
On Wed, Jul 01, 2009 at 08:21:12PM +0200, Juan Quintela wrote:
> TARGET_BASE_ARCH: architecture name (mips, sparc, ppc)
> TARGET_ARCH: Actual architecture
> TARGET_SUBARCH: change about TARGET_ARCH (sparc32plus, little/big endian
> variants) (was TARGET_ARCH2 and target_cpu)
> TARGET_ABI: call ABI for this TARGET_SUBARCH
> cpu = canonical name for the cpu, not sure how to relate this one with ARCH
> ARCH: where are we building, it is always the same than 'cpu' on
> configure, it is only used on the Makefiles, but I would preffer
> to only use one name for the same meaning.
Perhaps TARGET_CPU as the 'CPU architecture' (i.e. the name in the
target-* directory), and TARGET_ARCH as the 'subarch' (i.e. taking
big vs little-endian and 32 vs 64-bit into account)?
BTW, the handling of these definitions is duplicated in the configure
script for config.h and config.mak, and it'd be good to fix that.
I think it might be nicer to specify target_bigendian in the same way
that target_phys_bits is dealt with (and to cease assuming little-endian
by default). The same probably applied to softfloat, although I do not
know whether defaulting to '$target_softfloat = "yes"' and then setting
that to "no" for the targets where it is not wanted would be preferred.
FWIW, the list of architectures that currently don't define
CONFIG_SOFTFLOAT seems to be:
i386
x86_64
alpha
sh4
sh4eb
Also, I'm not sure whether setting target_has_{kqemu,kvm,xen} variables
where target_phys_bits is set would also be slightly cleaner... although
perhaps those particular architecture lists are unlikely to grow much...
I'm not sure how much of this you're interested in fixing, but I'll be
happy to post patches for any changes that you don't see as essential.
Cheers,
--
Stuart Brady
next prev parent reply other threads:[~2009-07-01 19:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-01 16:58 [Qemu-devel] [PATCH 00/13] More Build System cleanups quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 01/13] fix XEN Build quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 02/13] fix sparc not solaris build quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 03/13] Remove duplicated definition quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 04/13] use block-nested-y for files inside block/ quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 05/13] use nwfpe-obj-y for consistence quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 06/13] Remove unused Makefile variable quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 07/13] already defined several lines before in block-obj-y quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 08/13] configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 09/13] TARGET_ARCH2 is already known at configure time and it is called target_cpu Remove re-construction " quintela
2009-07-01 18:01 ` Blue Swirl
2009-07-01 18:21 ` [Qemu-devel] " Juan Quintela
2009-07-01 19:30 ` Stuart Brady [this message]
2009-07-01 16:58 ` [Qemu-devel] [PATCH 10/13] chang ifdefs by obj- quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 11/13] configure xen in a single place quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 12/13] configure kvm " quintela
2009-07-01 16:58 ` [Qemu-devel] [PATCH 13/13] configure kqemu " quintela
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=20090701193037.GA11528@miranda.arrow \
--to=sdbrady@ntlworld.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).