提交 757e725b 编写于 作者: P Peter Maydell

tcg: Clean up includes

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: NPeter Maydell <peter.maydell@linaro.org>
Message-id: 1453832250-766-16-git-send-email-peter.maydell@linaro.org
上级 9b8bfe21
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
* See the COPYING file in the top-level directory for details. * See the COPYING file in the top-level directory for details.
*/ */
#include "qemu/osdep.h"
#include "tcg-be-ldst.h" #include "tcg-be-ldst.h"
#include "qemu/bitops.h" #include "qemu/bitops.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "elf.h" #include "elf.h"
#include "tcg-be-ldst.h" #include "tcg-be-ldst.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg-be-ldst.h" #include "tcg-be-ldst.h"
#ifndef NDEBUG #ifndef NDEBUG
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg-be-ldst.h" #include "tcg-be-ldst.h"
#ifdef HOST_WORDS_BIGENDIAN #ifdef HOST_WORDS_BIGENDIAN
...@@ -1735,7 +1736,6 @@ static int tcg_target_callee_save_regs[] = { ...@@ -1735,7 +1736,6 @@ static int tcg_target_callee_save_regs[] = {
/* The Linux kernel doesn't provide any information about the available /* The Linux kernel doesn't provide any information about the available
instruction set. Probe it using a signal handler. */ instruction set. Probe it using a signal handler. */
#include <signal.h>
#ifndef use_movnz_instructions #ifndef use_movnz_instructions
bool use_movnz_instructions = false; bool use_movnz_instructions = false;
......
...@@ -23,10 +23,8 @@ ...@@ -23,10 +23,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "config.h" #include "qemu/osdep.h"
#include <stdlib.h>
#include <stdio.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "tcg-op.h" #include "tcg-op.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg-be-ldst.h" #include "tcg-be-ldst.h"
#if defined _CALL_DARWIN || defined __APPLE__ #if defined _CALL_DARWIN || defined __APPLE__
...@@ -2725,8 +2726,6 @@ static void __attribute__((constructor)) tcg_cache_init(void) ...@@ -2725,8 +2726,6 @@ static void __attribute__((constructor)) tcg_cache_init(void)
} }
#elif defined __APPLE__ #elif defined __APPLE__
#include <stdio.h>
#include <sys/types.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
static void __attribute__((constructor)) tcg_cache_init(void) static void __attribute__((constructor)) tcg_cache_init(void)
...@@ -2745,11 +2744,6 @@ 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__) #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> #include <sys/sysctl.h>
static void __attribute__((constructor)) tcg_cache_init(void) static void __attribute__((constructor)) tcg_cache_init(void)
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg-be-ldst.h" #include "tcg-be-ldst.h"
/* We only support generating code for 64-bit mode. */ /* We only support generating code for 64-bit mode. */
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg-be-null.h" #include "tcg-be-null.h"
#ifndef NDEBUG #ifndef NDEBUG
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg/tcg.h" #include "tcg/tcg.h"
#if defined(CONFIG_TCG_INTERPRETER) #if defined(CONFIG_TCG_INTERPRETER)
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg.h" #include "tcg.h"
#include "tcg-op.h" #include "tcg-op.h"
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#define USE_LIVENESS_ANALYSIS #define USE_LIVENESS_ANALYSIS
#define USE_TCG_OPTIMIZATIONS #define USE_TCG_OPTIMIZATIONS
#include "config.h" #include "qemu/osdep.h"
/* Define to jump the ELF file used to communicate with GDB. */ /* Define to jump the ELF file used to communicate with GDB. */
#undef DEBUG_JIT #undef DEBUG_JIT
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "tcg-be-null.h" #include "tcg-be-null.h"
/* TODO list: /* TODO list:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册