qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 05/10] build: drop TARGET_TYPE
Date: Fri, 14 Jun 2013 15:53:09 +0100	[thread overview]
Message-ID: <1371221594-11556-6-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1371221594-11556-1-git-send-email-peter.maydell@linaro.org>

From: Paolo Bonzini <pbonzini@redhat.com>

Just use the TARGET_NAME free string.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1370349928-20419-6-git-send-email-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 arch_init.c      |    2 +-
 configure        |    1 -
 qapi-schema.json |   18 +-----------------
 3 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/arch_init.c b/arch_init.c
index 23ca953..699c927 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -1094,7 +1094,7 @@ TargetInfo *qmp_query_target(Error **errp)
 {
     TargetInfo *info = g_malloc0(sizeof(*info));
 
-    info->arch = TARGET_TYPE;
+    info->arch = g_strdup(TARGET_NAME);
 
     return info;
 }
diff --git a/configure b/configure
index 46a2173..8732185 100755
--- a/configure
+++ b/configure
@@ -4246,7 +4246,6 @@ upper() {
 target_arch_name="`upper $TARGET_ARCH`"
 echo "TARGET_$target_arch_name=y" >> $config_target_mak
 echo "TARGET_NAME=$target_name" >> $config_target_mak
-echo "TARGET_TYPE=TARGET_TYPE_`upper $target_name`" >> $config_target_mak
 echo "TARGET_BASE_ARCH=$TARGET_BASE_ARCH" >> $config_target_mak
 if [ "$TARGET_ABI_DIR" = "" ]; then
   TARGET_ABI_DIR=$TARGET_ARCH
diff --git a/qapi-schema.json b/qapi-schema.json
index 5ad6894..a80ee40 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3013,22 +3013,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.
@@ -3038,7 +3022,7 @@
 # Since: 1.2.0
 ##
 { 'type': 'TargetInfo',
-  'data': { 'arch': 'TargetType' } }
+  'data': { 'arch': 'str' } }
 
 ##
 # @query-target:
-- 
1.7.9.5

  parent reply	other threads:[~2013-06-14 14:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14 14:53 [Qemu-devel] [PULL 00/10] configury queue Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 01/10] Add a stp file for usage from build directory Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 02/10] build: rename TARGET_ARCH2 to TARGET_NAME Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 03/10] build: do not use TARGET_ARCH Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 04/10] main: use TARGET_ARCH only for the target-specific #define Peter Maydell
2013-06-14 14:53 ` Peter Maydell [this message]
2013-06-14 14:53 ` [Qemu-devel] [PULL 06/10] configure: dtc: Probe for libfdt_env.h Peter Maydell
2013-06-17 23:24   ` Andreas Färber
2013-06-17 23:44     ` Peter Maydell
2013-06-18  0:03       ` David Gibson
2013-06-18  0:46       ` Andreas Färber
2013-06-18  0:52         ` Peter Crosthwaite
2013-06-18  1:22           ` Andreas Färber
2013-06-18  8:44             ` Paolo Bonzini
2013-06-18  8:41         ` Peter Maydell
2013-06-19 14:48   ` Cole Robinson
2013-06-19 15:42     ` Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 07/10] configure: Require libfdt for arm, ppc, microblaze softmmu targets Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 08/10] arm: Remove CONFIG_FDT conditionals Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 09/10] microblaze: " Peter Maydell
2013-06-14 14:53 ` [Qemu-devel] [PULL 10/10] ppc: " Peter Maydell
2013-06-14 15:01 ` [Qemu-devel] [PULL 00/10] configury queue Paolo Bonzini
2013-06-17 21:17 ` Anthony Liguori

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=1371221594-11556-6-git-send-email-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=aliguori@us.ibm.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).