From patchwork Fri Apr 8 20:28:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 8785931 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 85975C0553 for ; Fri, 8 Apr 2016 20:43:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C9CC920172 for ; Fri, 8 Apr 2016 20:43:16 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C0D820155 for ; Fri, 8 Apr 2016 20:43:16 +0000 (UTC) Received: from localhost ([::1]:58164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aodFL-0006om-9y for patchwork-qemu-devel@patchwork.kernel.org; Fri, 08 Apr 2016 16:43:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aod2L-0004Vh-SF for qemu-devel@nongnu.org; Fri, 08 Apr 2016 16:29:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aod2K-00029a-Qh for qemu-devel@nongnu.org; Fri, 08 Apr 2016 16:29:49 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aod2K-000293-Dj for qemu-devel@nongnu.org; Fri, 08 Apr 2016 16:29:48 -0400 Received: by mail-wm0-x243.google.com with SMTP id y144so6823958wmd.0 for ; Fri, 08 Apr 2016 13:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=TkZWo00WPX7JJYo5r0lkk/7nGuOVGqI8ZWNtb/7cyQk=; b=kzCHp8u6jkZxa8rQxIsbIuH96GOIWJntY9zgGtyRarLoVmj6I1cKrBccziHLvP5QX+ Z7t8VD9kaw9mNw3Yi9hn3KejrReS3GvhupozL4RiNTOc6EqNvt8fh39Fbuxfs+dPxNCY gzCg9PCzFEbfkKlsVYAP3RiX+MQKBSexZJCt+lVNzdsf8eoOOVjj6/aNzJJ6TQ8DpoH0 yF3hzljlYLoNxf7ycLWuQxcwQoKPxQ5Szpe0ikz2B+YsvwfqYFCRluJxXV1kXchjKKnE Bgs8Ss9i4BAd1ae+mM7lE8UMmF6d2NAN8iNuOHX8Ia4kGWFm5NN/Lh6FErKNUtkmGihv a06g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=TkZWo00WPX7JJYo5r0lkk/7nGuOVGqI8ZWNtb/7cyQk=; b=E4XjA774RBEySJIDjEsAq6wYPZLnMWnDYesEJTZyWOSGRjeQqrvVWEKW5z1L2dmqfD uzBUvjfWXFd5NmVj49+HtpuWymLXn+fF8G0flsnFX504Tnro1r8AUIAP+A+A1ROwlNQd x+/Zj9zPJYDmes8F5V6QTHfY9sJ7GoKSuDQb9rkys1jmc2GeJKc5eo68KlELJLoJfsfx vO5kVj+CayQ1pPztvcDdx7XTB/azo5w6s7jn76fgzPZ7Vrbv6b6tiiNRhJuiuQCULxGw 0Ax1tWStID1suIbAYwfNfzyqUMig4KDO6tXUPaabGFj8tAX77RV58iKy/Oh2UIflOKaT 4SmA== X-Gm-Message-State: AD7BkJK0/D+pP2UaBf+70Q4C5vsrHUiBVBHrSsmsPcntMGlu4TzVcWCjCVoc6CN5Fl4IIA== X-Received: by 10.28.48.147 with SMTP id w141mr5516590wmw.85.1460147385741; Fri, 08 Apr 2016 13:29:45 -0700 (PDT) Received: from 640k.lan (94-39-141-76.adsl-ull.clienti.tiscali.it. [94.39.141.76]) by smtp.gmail.com with ESMTPSA id w10sm3849168wjz.9.2016.04.08.13.29.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2016 13:29:45 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 8 Apr 2016 22:28:52 +0200 Message-Id: <1460147350-7601-33-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1460147350-7601-1-git-send-email-pbonzini@redhat.com> References: <1460147350-7601-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH 32/50] include: poison symbols in osdep.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Ensure that all target-independent files ignore poisoned symbols, and fix the fallout. Signed-off-by: Paolo Bonzini --- hw/core/Makefile.objs | 2 +- include/exec/cpu-common.h | 4 ---- include/exec/helper-head.h | 23 +++++++++++++---------- include/qemu/osdep.h | 2 ++ scripts/create_config | 2 +- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/hw/core/Makefile.objs b/hw/core/Makefile.objs index abb3560..70951d4 100644 --- a/hw/core/Makefile.objs +++ b/hw/core/Makefile.objs @@ -4,7 +4,7 @@ common-obj-y += fw-path-provider.o # irq.o needed for qdev GPIO handling: common-obj-y += irq.o common-obj-y += hotplug.o -common-obj-y += nmi.o +obj-y += nmi.o common-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o common-obj-$(CONFIG_XILINX_AXI) += stream.o diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index 9e839e5..4f59034 100644 --- a/include/exec/cpu-common.h +++ b/include/exec/cpu-common.h @@ -7,10 +7,6 @@ #include "exec/hwaddr.h" #endif -#ifndef NEED_CPU_H -#include "exec/poison.h" -#endif - #include "qemu/bswap.h" #include "qemu/queue.h" #include "qemu/fprintf-fn.h" diff --git a/include/exec/helper-head.h b/include/exec/helper-head.h index ec79043..74f8f03 100644 --- a/include/exec/helper-head.h +++ b/include/exec/helper-head.h @@ -33,17 +33,9 @@ #define dh_alias_s64 i64 #define dh_alias_f32 i32 #define dh_alias_f64 i64 -#ifdef TARGET_LONG_BITS -# if TARGET_LONG_BITS == 32 -# define dh_alias_tl i32 -# else -# define dh_alias_tl i64 -# endif -#endif #define dh_alias_ptr ptr #define dh_alias_void void #define dh_alias_noreturn noreturn -#define dh_alias_env ptr #define dh_alias(t) glue(dh_alias_, t) #define dh_ctype_i32 uint32_t @@ -53,13 +45,24 @@ #define dh_ctype_s64 int64_t #define dh_ctype_f32 float32 #define dh_ctype_f64 float64 -#define dh_ctype_tl target_ulong #define dh_ctype_ptr void * #define dh_ctype_void void #define dh_ctype_noreturn void QEMU_NORETURN -#define dh_ctype_env CPUArchState * #define dh_ctype(t) dh_ctype_##t +#ifdef NEED_CPU_H +# ifdef TARGET_LONG_BITS +# if TARGET_LONG_BITS == 32 +# define dh_alias_tl i32 +# else +# define dh_alias_tl i64 +# endif +# endif +# define dh_alias_env ptr +# define dh_ctype_tl target_ulong +# define dh_ctype_env CPUArchState * +#endif + /* We can't use glue() here because it falls foul of C preprocessor recursive expansion rules. */ #define dh_retvar_decl0_void void diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 408783f..7fe7b76 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -30,6 +30,8 @@ #include "config-host.h" #ifdef NEED_CPU_H #include "config-target.h" +#else +#include "exec/poison.h" #endif #include "qemu/compiler.h" diff --git a/scripts/create_config b/scripts/create_config index 9cb176f..b2d2ebb 100755 --- a/scripts/create_config +++ b/scripts/create_config @@ -52,7 +52,7 @@ case $line in done echo " NULL" ;; - CONFIG_*=y) # configuration + CONFIG_*='$(CONFIG_SOFTMMU)'|CONFIG_*=y) # configuration name=${line%=*} echo "#define $name 1" ;;