]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
move targphys.h and hw/poison.h inclusion to cpu-common.h
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Apr 2010 17:57:10 +0000 (19:57 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 9 Apr 2010 16:55:55 +0000 (18:55 +0200)
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 <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
cpu-common.h
hw/hw.h
poison.h [moved from hw/poison.h with 100% similarity]

index ce0221b197c48b5f8b12e30130e7865b72a94920..b730ca033df7461587845706e158433afda76a7a 100644 (file)
@@ -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 7b500f4e440525f4d2eb57d49bfbb2489161e1e1..328b704fd8ba301c87dce0a54408b465e5c829f5 100644 (file)
--- 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
 
similarity index 100%
rename from hw/poison.h
rename to poison.h