From patchwork Fri Jun 25 12:52:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 56977 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 93D45B6F04 for ; Sat, 26 Jun 2010 05:35:18 +1000 (EST) Received: from localhost ([127.0.0.1]:52956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSEg9-00066M-W9 for incoming@patchwork.ozlabs.org; Fri, 25 Jun 2010 15:35:10 -0400 Received: from [140.186.70.92] (port=56066 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSD2I-0005jm-2U for qemu-devel@nongnu.org; Fri, 25 Jun 2010 13:50:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OS8Oe-0002fE-6o for qemu-devel@nongnu.org; Fri, 25 Jun 2010 08:52:42 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:37373) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OS8Od-0002dD-RH for qemu-devel@nongnu.org; Fri, 25 Jun 2010 08:52:40 -0400 Received: by wyb42 with SMTP id 42so3384178wyb.4 for ; Fri, 25 Jun 2010 05:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=zgQUkwinRPq3COs5M7+xIOQf6oV6inQaAsALiZ87CaY=; b=CRCq/FYl5DE22gM5RBualUhtd1CTyjXGs9HU9sr3fNkCcIyRJhfBLwXVq0vvE/l/Eq fQgbj0rXgYp8n6zYkAmgqJbNqqEaZgsF28Hjlxgk/pfF/XCqb3yGqApuSn966Z/93NNv k7XNfSCzcTZegdn9MVODh3upDgQfOXIsC+zaY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=cMjHVj5jW4Q0vnKpmESfp07n84ZWCdGeTMftLxBxt8FaM1QwuUKs1fOl3gTPQwt/n9 w/qfNyRnPRgVzeR+ohFruFYqNQcmzXWwGBH8RipyXjoF96OAb0p6e84qJF5u7N9l5XaE YC5fUuTXeoBxbt88utPqF0RXp3t9Uy926ckpk= Received: by 10.216.156.79 with SMTP id l57mr5088959wek.46.1277470353001; Fri, 25 Jun 2010 05:52:33 -0700 (PDT) Received: from localhost.localdomain (nat-pool-brq-t.redhat.com [209.132.186.34]) by mx.google.com with ESMTPS id o3sm116954wee.38.2010.06.25.05.52.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Jun 2010 05:52:32 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 25 Jun 2010 14:52:17 +0200 Message-Id: <1277470342-5861-3-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.0.1 In-Reply-To: <1277470342-5861-1-git-send-email-pbonzini@redhat.com> References: <1277470342-5861-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Amit Shah , Isaku Yamahata Subject: [Qemu-devel] [PATCH 2/7] include qemu-common.h when needed by the next patches X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org All of these files were already including qemu-common.h indirectly, e.g. via cpu-all.h, just not early enough. Signed-off-by: Paolo Bonzini --- arm-semi.c | 2 +- bsd-user/qemu.h | 1 + cpu-exec.c | 1 + darwin-user/qemu.h | 1 + disas.c | 1 + exec.c | 2 +- linux-user/arm/nwfpe/fpa11.h | 3 ++- linux-user/main.c | 1 - linux-user/qemu.h | 1 + m68k-semi.c | 2 +- target-alpha/helper.c | 1 + target-alpha/op_helper.c | 1 + target-alpha/translate.c | 2 +- target-arm/helper.c | 2 +- target-arm/iwmmxt_helper.c | 1 + target-arm/neon_helper.c | 1 + target-arm/op_helper.c | 1 + target-arm/translate.c | 1 + target-cris/helper.c | 1 + target-cris/mmu.c | 1 + target-cris/op_helper.c | 1 + target-cris/translate.c | 2 +- target-i386/cpuid.c | 1 + target-i386/helper.c | 2 +- target-i386/op_helper.c | 1 + target-i386/translate.c | 1 + target-m68k/helper.c | 2 +- target-m68k/op_helper.c | 1 + target-m68k/translate.c | 1 + target-microblaze/helper.c | 1 + target-microblaze/mmu.c | 1 + target-microblaze/op_helper.c | 1 + target-microblaze/translate.c | 2 +- target-mips/helper.c | 1 + target-mips/op_helper.c | 1 + target-mips/translate.c | 2 +- target-ppc/helper.c | 2 +- target-ppc/op_helper.c | 1 + target-ppc/translate.c | 2 +- target-s390x/helper.c | 2 +- target-s390x/op_helper.c | 1 + target-sh4/helper.c | 1 + target-sh4/op_helper.c | 2 ++ target-sh4/translate.c | 2 +- target-sparc/helper.c | 2 +- target-sparc/op_helper.c | 1 + target-sparc/translate.c | 1 + translate-all.c | 1 + 48 files changed, 49 insertions(+), 17 deletions(-) diff --git a/arm-semi.c b/arm-semi.c index 0687b03..4c5ab65 100644 --- a/arm-semi.c +++ b/arm-semi.c @@ -26,7 +26,7 @@ #include #include -#include "cpu.h" +#include "config.h" #ifdef CONFIG_USER_ONLY #include "qemu.h" diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 554ff8b..6450571 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -4,6 +4,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #undef DEBUG_REMAP diff --git a/cpu-exec.c b/cpu-exec.c index 026980a..e4e0def 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ #include "config.h" +#include "qemu-common.h" #include "exec.h" #include "disas.h" #include "tcg.h" diff --git a/darwin-user/qemu.h b/darwin-user/qemu.h index 462bbda..a5d53ea 100644 --- a/darwin-user/qemu.h +++ b/darwin-user/qemu.h @@ -4,6 +4,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "thunk.h" diff --git a/disas.c b/disas.c index 79a98de..2905459 100644 --- a/disas.c +++ b/disas.c @@ -1,5 +1,6 @@ /* General "disassemble this chunk" code. Used for debugging. */ #include "config.h" +#include "qemu-common.h" #include "dis-asm.h" #include "elf.h" #include diff --git a/exec.c b/exec.c index 7f64384..8b61259 100644 --- a/exec.c +++ b/exec.c @@ -31,9 +31,9 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" -#include "qemu-common.h" #include "tcg.h" #include "hw/hw.h" #include "osdep.h" diff --git a/linux-user/arm/nwfpe/fpa11.h b/linux-user/arm/nwfpe/fpa11.h index 07419e2..0e64897 100644 --- a/linux-user/arm/nwfpe/fpa11.h +++ b/linux-user/arm/nwfpe/fpa11.h @@ -25,7 +25,8 @@ #include #include -#include +#include "qemu-common.h" +#include "cpu.h" #define GET_FPA11() (qemufpa) diff --git a/linux-user/main.c b/linux-user/main.c index 403c8d3..e0511ee 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -27,7 +27,6 @@ #include #include "qemu.h" -#include "qemu-common.h" #include "cache-utils.h" /* For tb_lock */ #include "exec-all.h" diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 1878d5a..e2bd7f8 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -4,6 +4,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #undef DEBUG_REMAP diff --git a/m68k-semi.c b/m68k-semi.c index d16bc67..7baa97b 100644 --- a/m68k-semi.c +++ b/m68k-semi.c @@ -27,7 +27,7 @@ #include #include -#include "cpu.h" +#include "config.h" #if defined(CONFIG_USER_ONLY) #include "qemu.h" #define SEMIHOSTING_HEAP_SIZE (128 * 1024 * 1024) diff --git a/target-alpha/helper.c b/target-alpha/helper.c index b6d2160..043dbc1 100644 --- a/target-alpha/helper.c +++ b/target-alpha/helper.c @@ -21,6 +21,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "softfloat.h" diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index ff5ae26..39a6a85 100644 --- a/target-alpha/op_helper.c +++ b/target-alpha/op_helper.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ +#include "qemu-common.h" #include "exec.h" #include "host-utils.h" #include "softfloat.h" diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 3a1c625..72eeb09 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -21,12 +21,12 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" #include "host-utils.h" #include "tcg-op.h" -#include "qemu-common.h" #include "helper.h" #define GEN_HELPER 1 diff --git a/target-arm/helper.c b/target-arm/helper.c index 63e5dc7..79f5be8 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2,11 +2,11 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "gdbstub.h" #include "helpers.h" -#include "qemu-common.h" #include "host-utils.h" #if !defined(CONFIG_USER_ONLY) #include "hw/loader.h" diff --git a/target-arm/iwmmxt_helper.c b/target-arm/iwmmxt_helper.c index 3332f70..ec8c456 100644 --- a/target-arm/iwmmxt_helper.c +++ b/target-arm/iwmmxt_helper.c @@ -22,6 +22,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "helpers.h" diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c index 5e6452b..ae9d955 100644 --- a/target-arm/neon_helper.c +++ b/target-arm/neon_helper.c @@ -9,6 +9,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "helpers.h" diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index 9b1a014..6f0f4ce 100644 --- a/target-arm/op_helper.c +++ b/target-arm/op_helper.c @@ -16,6 +16,7 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ +#include "qemu-common.h" #include "exec.h" #include "helpers.h" diff --git a/target-arm/translate.c b/target-arm/translate.c index a28e2ff..3c37626 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -24,6 +24,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" diff --git a/target-cris/helper.c b/target-cris/helper.c index 240bda0..e781aa9 100644 --- a/target-cris/helper.c +++ b/target-cris/helper.c @@ -22,6 +22,7 @@ #include #include "config.h" +#include "qemu-common.h" #include "cpu.h" #include "mmu.h" #include "exec-all.h" diff --git a/target-cris/mmu.c b/target-cris/mmu.c index d09e921..bc6c8da 100644 --- a/target-cris/mmu.c +++ b/target-cris/mmu.c @@ -25,6 +25,7 @@ #include #include "config.h" +#include "qemu-common.h" #include "cpu.h" #include "mmu.h" #include "exec-all.h" diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c index a60da94..9e21799 100644 --- a/target-cris/op_helper.c +++ b/target-cris/op_helper.c @@ -18,6 +18,7 @@ * License along with this library; if not, see . */ +#include "qemu-common.h" #include "exec.h" #include "mmu.h" #include "helper.h" diff --git a/target-cris/translate.c b/target-cris/translate.c index 45c7682..b4bc99b 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -29,6 +29,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" @@ -36,7 +37,6 @@ #include "helper.h" #include "mmu.h" #include "crisv32-decode.h" -#include "qemu-common.h" #define GEN_HELPER 1 #include "helper.h" diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 6a0f7ca..c47518e 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -21,6 +21,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "kvm.h" diff --git a/target-i386/helper.c b/target-i386/helper.c index 718394c..3eabb44 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -23,9 +23,9 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" -#include "qemu-common.h" #include "kvm.h" //#define DEBUG_MMU diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index c1256f4..d68be64 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ #define CPU_NO_GLOBAL_REGS +#include "qemu-common.h" #include "exec.h" #include "exec-all.h" #include "host-utils.h" diff --git a/target-i386/translate.c b/target-i386/translate.c index 708b0a1..cbc2bcd 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -23,6 +23,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" diff --git a/target-m68k/helper.c b/target-m68k/helper.c index b4ebb14..a0d1e35 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -22,9 +22,9 @@ #include #include "config.h" +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" -#include "qemu-common.h" #include "gdbstub.h" #include "helpers.h" diff --git a/target-m68k/op_helper.c b/target-m68k/op_helper.c index 0711107..b98d257 100644 --- a/target-m68k/op_helper.c +++ b/target-m68k/op_helper.c @@ -16,6 +16,7 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ +#include "qemu-common.h" #include "exec.h" #include "helpers.h" diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 5351880..234e263 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -24,6 +24,7 @@ #include #include "config.h" +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" diff --git a/target-microblaze/helper.c b/target-microblaze/helper.c index 5230b52..e575fe9 100644 --- a/target-microblaze/helper.c +++ b/target-microblaze/helper.c @@ -22,6 +22,7 @@ #include #include "config.h" +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "host-utils.h" diff --git a/target-microblaze/mmu.c b/target-microblaze/mmu.c index b38f7d9..224c2fd 100644 --- a/target-microblaze/mmu.c +++ b/target-microblaze/mmu.c @@ -20,6 +20,7 @@ #include #include +#include "qemu-common.h" #include "config.h" #include "cpu.h" #include "exec-all.h" diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c index be0c829..568fe88 100644 --- a/target-microblaze/op_helper.c +++ b/target-microblaze/op_helper.c @@ -18,6 +18,7 @@ */ #include +#include "qemu-common.h" #include "exec.h" #include "helper.h" #include "host-utils.h" diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index ca54e2c..f7a01fe 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -24,13 +24,13 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" #include "tcg-op.h" #include "helper.h" #include "microblaze-decode.h" -#include "qemu-common.h" #define GEN_HELPER 1 #include "helper.h" diff --git a/target-mips/helper.c b/target-mips/helper.c index ea221ab..84bf8a2 100644 --- a/target-mips/helper.c +++ b/target-mips/helper.c @@ -23,6 +23,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index d09d6ed..c0e56f4 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ #include +#include "qemu-common.h" #include "exec.h" #include "host-utils.h" diff --git a/target-mips/translate.c b/target-mips/translate.c index d43d72d..e4d94f6 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -26,11 +26,11 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" #include "tcg-op.h" -#include "qemu-common.h" #include "helper.h" #define GEN_HELPER 1 diff --git a/target-ppc/helper.c b/target-ppc/helper.c index d342b09..a114eb9 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -23,10 +23,10 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "helper_regs.h" -#include "qemu-common.h" #include "kvm.h" //#define DEBUG_MMU diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 3c3aa60..89faf93 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ #include +#include "qemu-common.h" #include "exec.h" #include "host-utils.h" #include "helper.h" diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 66e1c0d..ff6f7c1 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -22,11 +22,11 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" #include "tcg-op.h" -#include "qemu-common.h" #include "host-utils.h" #include "helper.h" diff --git a/target-s390x/helper.c b/target-s390x/helper.c index 4a5297b..d474bca 100644 --- a/target-s390x/helper.c +++ b/target-s390x/helper.c @@ -21,10 +21,10 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "gdbstub.h" -#include "qemu-common.h" #include #include "kvm.h" diff --git a/target-s390x/op_helper.c b/target-s390x/op_helper.c index 402df2d..54982f3 100644 --- a/target-s390x/op_helper.c +++ b/target-s390x/op_helper.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ +#include "qemu-common.h" #include "exec.h" /*****************************************************************************/ diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 9e70352..63d48c1 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -23,6 +23,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "hw/sh_intc.h" diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c index 2e5f555..93d2684 100644 --- a/target-sh4/op_helper.c +++ b/target-sh4/op_helper.c @@ -18,6 +18,8 @@ */ #include #include + +#include "qemu-common.h" #include "exec.h" #include "helper.h" diff --git a/target-sh4/translate.c b/target-sh4/translate.c index d0d6c00..3f0393a 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -26,11 +26,11 @@ #define SH4_DEBUG_DISAS //#define SH4_SINGLE_STEP +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" #include "tcg-op.h" -#include "qemu-common.h" #include "helper.h" #define GEN_HELPER 1 diff --git a/target-sparc/helper.c b/target-sparc/helper.c index aa1fd63..1c6319f 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -23,9 +23,9 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" -#include "qemu-common.h" //#define DEBUG_MMU //#define DEBUG_FEATURES diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index be3c1e0..547793f 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -1,3 +1,4 @@ +#include "qemu-common.h" #include "exec.h" #include "host-utils.h" #include "helper.h" diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 23f9519..b91355b 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -24,6 +24,7 @@ #include #include +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h" diff --git a/translate-all.c b/translate-all.c index efcfb9a..d9fe23f 100644 --- a/translate-all.c +++ b/translate-all.c @@ -25,6 +25,7 @@ #include "config.h" #define NO_CPU_IO_DEFS +#include "qemu-common.h" #include "cpu.h" #include "exec-all.h" #include "disas.h"