From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 3/4] main: use TARGET_ARCH only for the target-specific #define
Date: Wed, 29 May 2013 08:30:21 +0200 [thread overview]
Message-ID: <51A5A07D.4050808@redhat.com> (raw)
In-Reply-To: <CAFEAcA-YSHq6ZvMmqDfstw2KP24CPZEP+=q1jMbqRPLOKfY8dA@mail.gmail.com>
Il 28/05/2013 20:09, Peter Maydell ha scritto:
> On 27 May 2013 12:34, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Everything else needs to match the executable name, which is
>> TARGET_NAME.
>>
>> Before:
>> $ sh4eb-linux-user/qemu-sh4eb --help
>> usage: qemu-sh4 [options] program [arguments...]
>> Linux CPU emulator (compiled for sh4 emulation)
>>
>> After:
>> $ sh4eb-linux-user/qemu-sh4eb --help
>> usage: qemu-sh4eb [options] program [arguments...]
>> Linux CPU emulator (compiled for sh4eb emulation)
>>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>> arch_init.c | 2 +-
>> bsd-user/main.c | 6 +++---
>> configure | 25 +++++++++++++++----------
>> linux-user/main.c | 6 +++---
>> scripts/create_config | 13 ++++---------
>> 5 files changed, 26 insertions(+), 26 deletions(-)
>>
>> diff --git a/arch_init.c b/arch_init.c
>> index 49c5dc2..22fbe96 100644
>> --- a/arch_init.c
>> +++ b/arch_init.c
>> @@ -123,7 +123,7 @@ static struct defconfig_file {
>> bool userconfig;
>> } default_config_files[] = {
>> { CONFIG_QEMU_CONFDIR "/qemu.conf", true },
>> - { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf", true },
>> + { CONFIG_QEMU_CONFDIR "/target-" TARGET_NAME ".conf", true },
>> { NULL }, /* end of list */
>
> I note this changes user-visible behaviour since we're now
> looking for different config files. Doesn't this need to be
> documented somewhere? Or is it that we can get away with making
> the change because it is undocumented?
I don't think that is documented, but I can check. The patch needs a
respin anyway on top of Alon's systemtap patch (semantic conflict).
>> --- a/scripts/create_config
>> +++ b/scripts/create_config
>> @@ -70,16 +70,10 @@ case $line in
>> value=${line#*=}
>> echo "#define $name $value"
>> ;;
>> - TARGET_ARCH=*) # configuration
>> - target_arch=${line#*=}
>> - echo "#define TARGET_ARCH \"$target_arch\""
>> - ;;
>> TARGET_BASE_ARCH=*) # configuration
>> target_base_arch=${line#*=}
>> - if [ "$target_base_arch" != "$target_arch" ]; then
>> - base_arch_name=`echo $target_base_arch | LC_ALL=C tr '[a-z]' '[A-Z]'`
>> - echo "#define TARGET_$base_arch_name 1"
>> - fi
>> + base_arch_name=`echo $target_base_arch | LC_ALL=C tr '[a-z]' '[A-Z]'`
>> + echo "#define TARGET_$base_arch_name 1"
>> ;;
>
> This change means that (eg) arm-softmmu/config-target.h now has
> two lines "#define TARGET_ARM 1", once because config-target.mak
> has TARGET_ARM=y and once becgaues of TARGET_BASE_ARCH=arm.
> I guess that's just cosmetic though.
Yes.
Paolo
next prev parent reply other threads:[~2013-05-29 6:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-27 11:34 [Qemu-devel] [PATCH 0/4] configure: TARGET_ARCH cleanups Paolo Bonzini
2013-05-27 11:34 ` [Qemu-devel] [PATCH 1/4] build: rename TARGET_ARCH2 to TARGET_NAME Paolo Bonzini
2013-05-27 11:34 ` [Qemu-devel] [PATCH 2/4] build: do not use TARGET_ARCH Paolo Bonzini
2013-05-28 18:14 ` Peter Maydell
2013-05-27 11:34 ` [Qemu-devel] [PATCH 3/4] main: use TARGET_ARCH only for the target-specific #define Paolo Bonzini
2013-05-28 18:09 ` Peter Maydell
2013-05-29 6:30 ` Paolo Bonzini [this message]
2013-05-27 11:34 ` [Qemu-devel] [PATCH 4/4] build: drop TARGET_TYPE Paolo Bonzini
2013-05-28 15:20 ` Eric Blake
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=51A5A07D.4050808@redhat.com \
--to=pbonzini@redhat.com \
--cc=afaerber@suse.de \
--cc=peter.maydell@linaro.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.