tcg: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 26 Jan 2016 18:17:08 +0000 (18:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2016 15:07:23 +0000 (15:07 +0000)
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1453832250-766-16-git-send-email-peter.maydell@linaro.org

12 files changed:
tcg/aarch64/tcg-target.c
tcg/arm/tcg-target.c
tcg/i386/tcg-target.c
tcg/mips/tcg-target.c
tcg/optimize.c
tcg/ppc/tcg-target.c
tcg/s390/tcg-target.c
tcg/sparc/tcg-target.c
tcg/tcg-common.c
tcg/tcg-op.c
tcg/tcg.c
tcg/tci/tcg-target.c

index 0ed10a97412107d55cd25ce32990aa5a9d548297..8467d5d8b9e8e93e97ffe8648e735a062fb94f5d 100644 (file)
@@ -10,6 +10,7 @@
  * See the COPYING file in the top-level directory for details.
  */
 
+#include "qemu/osdep.h"
 #include "tcg-be-ldst.h"
 #include "qemu/bitops.h"
 
index 3edf6a6f971c9c5bbe90b648d1e6178df36d1c99..146ac00f632977c3aace8bb7d01a9e0324046f2d 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "elf.h"
 #include "tcg-be-ldst.h"
 
index 9187d34caf6d87f9a59495cfa18327aee4f0ba77..d90636cb4e19b7bf8bd8abb1d418730c63ff2029 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg-be-ldst.h"
 
 #ifndef NDEBUG
index 79e052ff7aaaa24784843c3afd65a528a1f24a06..2dc4998719be393769d792d9e03648b2290c7448 100644 (file)
@@ -24,6 +24,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg-be-ldst.h"
 
 #ifdef HOST_WORDS_BIGENDIAN
@@ -1735,7 +1736,6 @@ static int tcg_target_callee_save_regs[] = {
 /* The Linux kernel doesn't provide any information about the available
    instruction set. Probe it using a signal handler. */
 
-#include <signal.h>
 
 #ifndef use_movnz_instructions
 bool use_movnz_instructions = false;
index 10795ec9d517a1b137160405ebc856219c648b52..6d68f57ea9008994dba8fcdb496b5f70363c08a8 100644 (file)
  * THE SOFTWARE.
  */
 
-#include "config.h"
+#include "qemu/osdep.h"
 
-#include <stdlib.h>
-#include <stdio.h>
 
 #include "qemu-common.h"
 #include "tcg-op.h"
index 2c72565fb95bbc8c3b3c816e9e8ce810df5ae0be..c593344db1e6ac9e7c56398cec869457cdfbc23a 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg-be-ldst.h"
 
 #if defined _CALL_DARWIN || defined __APPLE__
@@ -2725,8 +2726,6 @@ static void __attribute__((constructor)) tcg_cache_init(void)
 }
 
 #elif defined __APPLE__
-#include <stdio.h>
-#include <sys/types.h>
 #include <sys/sysctl.h>
 
 static void __attribute__((constructor)) tcg_cache_init(void)
@@ -2745,11 +2744,6 @@ static void __attribute__((constructor)) tcg_cache_init(void)
 }
 
 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
 #include <sys/sysctl.h>
 
 static void __attribute__((constructor)) tcg_cache_init(void)
index fbf97bb2e15d17e5994288346524bf173b0c618d..58520fa22b4b73da70214de09da4d4c4de672de7 100644 (file)
@@ -24,6 +24,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg-be-ldst.h"
 
 /* We only support generating code for 64-bit mode.  */
index 54df1bc4243226b8a308d1885ddbadefb81ac10e..d3100ab557982a9116ffe045eda913f76fc6fcb5 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg-be-null.h"
 
 #ifndef NDEBUG
index 8fa4e13305f13cf23eaac33dbe38892d103a1b05..97305a3efc14536e31e1cf7d06122686e8ec9d64 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg/tcg.h"
 
 #if defined(CONFIG_TCG_INTERPRETER)
index 0b9dd8ff9f41e62be025e1c3c2fbaa130ec551fd..f554b86d4064cc2d1ba25df2982e62fce455a2e4 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg.h"
 #include "tcg-op.h"
 
index a163541d3c13be6396a6332b8ef6ab4ee6c8bfe3..3ce02dcd0823ee9adad665b3ab9733320bb8f98f 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -26,7 +26,7 @@
 #define USE_LIVENESS_ANALYSIS
 #define USE_TCG_OPTIMIZATIONS
 
-#include "config.h"
+#include "qemu/osdep.h"
 
 /* Define to jump the ELF file used to communicate with GDB.  */
 #undef DEBUG_JIT
index 4afe4d7a8d59e79369fb1fe6fe59516b04aca7a2..16ce048361e504dfc9518eac50bf79568876bab5 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "tcg-be-null.h"
 
 /* TODO list: