From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxOe9-0003rq-HT for qemu-devel@nongnu.org; Thu, 01 Apr 2010 13:57:37 -0400 Received: from [140.186.70.92] (port=59654 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxOe7-0003r8-La for qemu-devel@nongnu.org; Thu, 01 Apr 2010 13:57:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxOe4-0004zN-Ju for qemu-devel@nongnu.org; Thu, 01 Apr 2010 13:57:35 -0400 Received: from mail-iw0-f196.google.com ([209.85.223.196]:40637) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOe4-0004zH-FQ for qemu-devel@nongnu.org; Thu, 01 Apr 2010 13:57:32 -0400 Received: by iwn34 with SMTP id 34so947378iwn.23 for ; Thu, 01 Apr 2010 10:57:31 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 1 Apr 2010 19:57:10 +0200 Message-Id: <1270144632-25063-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1270144632-25063-1-git-send-email-pbonzini@redhat.com> References: <1270144632-25063-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 3/5] move targphys.h and hw/poison.h inclusion to cpu-common.h List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org With more files from outside the hw/ directory being placed into libhw, avoid the need to include hw/hw.h for the sake of targ_phys_addr_t. Signed-off-by: Paolo Bonzini --- cpu-common.h | 8 ++++++++ hw/hw.h | 2 -- hw/poison.h => poison.h | 0 3 files changed, 8 insertions(+), 2 deletions(-) rename hw/poison.h => poison.h (100%) diff --git a/cpu-common.h b/cpu-common.h index bb05300..2abd4a8 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -7,6 +7,14 @@ #define WORDS_ALIGNED #endif +#ifdef TARGET_PHYS_ADDR_BITS +#include "targphys.h" +#endif + +#ifndef NEED_CPU_H +#include "poison.h" +#endif + #include "bswap.h" #include "qemu-queue.h" diff --git a/hw/hw.h b/hw/hw.h index 7b500f4..328b704 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -5,8 +5,6 @@ #include "qemu-common.h" #if defined(TARGET_PHYS_ADDR_BITS) && !defined(NEED_CPU_H) -#include "targphys.h" -#include "poison.h" #include "cpu-common.h" #endif diff --git a/hw/poison.h b/poison.h similarity index 100% rename from hw/poison.h rename to poison.h -- 1.6.6.1