All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC PATCH 0/4] build: TARGET_ARCH/ARCH2/TYPE simplification
Date: Mon, 20 May 2013 15:41:01 -0600	[thread overview]
Message-ID: <519A986D.7020504@redhat.com> (raw)
In-Reply-To: <1369070603-26778-1-git-send-email-pbonzini@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2373 bytes --]

On 05/20/2013 11:23 AM, Paolo Bonzini wrote:
> We have three variables currently in config-target.h:
> 
> - TARGET_ARCH is used to create a unique per-arch symbol, used in #ifdefs.
>   It is also used as a string through config-target.h, but this is almost
>   always wrong.
> 
> - TARGET_ARCH2 is the name of the executable (minus the qemu-/qemu-system-
>   prefix); it is not available in config-target.h.
> 
> - TARGET_TYPE is an enum but is otherwise the same as TARGET_ARCH2
> 
> This series changes all uses of TARGET_ARCH to refer to TARGET_ARCH2
> instead (which is renamed to TARGET_NAME).  The TARGET_ARCH #define
> is dropped, only the per-arch symbol remains.  TARGET_TYPE is then also
> removed since it is serialized to the same string if TARGET_NAME is
> used directly.

[Ugg - there's no good way to convince Thunderbird to reply to just 4/4,
when you inline everything after your "-- " signoff...]

> +++ b/qapi-schema.json
> @@ -3008,22 +3008,6 @@
>  { 'command': 'query-fdsets', 'returns': ['FdsetInfo'] }
>  
>  ##
> -# @TargetType
> -#
> -# Target CPU emulation type
> -#
> -# These parameters correspond to the softmmu binary CPU name that is currently
> -# running.
> -#
> -# Since: 1.2.0
> -##
> -{ 'enum': 'TargetType',
> -  'data': [ 'alpha', 'arm', 'cris', 'i386', 'lm32', 'm68k', 'microblazeel',
> -            'microblaze', 'mips64el', 'mips64', 'mipsel', 'mips', 'moxie',
> -            'or32', 'ppc64', 'ppcemb', 'ppc', 's390x', 'sh4eb', 'sh4',
> -            'sparc64', 'sparc', 'unicore32', 'x86_64', 'xtensaeb', 'xtensa' ] }
> -
> -##
>  # @TargetInfo:
>  #
>  # Information describing the QEMU target.
> @@ -3033,7 +3017,7 @@
>  # Since: 1.2.0
>  ##
>  { 'type': 'TargetInfo',
> -  'data': { 'arch': 'TargetType' } }
> +  'data': { 'arch': 'str' } }

No change to the wire format, and being type-safe didn't really add
anything (since a binary only supported a single arch, not the entire
enum of arches).  Chaning now will avoid us being locked into something
once introspection is added (deleting it after we have introspection may
still be possible, but it would be harder to prove that it is not
backwards incompatible at that point).  I'm okay with this deletion.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]

      parent reply	other threads:[~2013-05-20 21:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20 17:23 [Qemu-devel] [RFC PATCH 0/4] build: TARGET_ARCH/ARCH2/TYPE simplification Paolo Bonzini
2013-05-20 20:57 ` Andreas Färber
2013-05-20 21:33   ` Peter Maydell
2013-05-20 21:45     ` Andreas Färber
2013-05-20 22:50       ` Peter Maydell
2013-05-20 21:41 ` Eric Blake [this message]

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=519A986D.7020504@redhat.com \
    --to=eblake@redhat.com \
    --cc=pbonzini@redhat.com \
    --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.