exec: 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.

Backports commit 7b31bbc2e68605ab2f10dc609dd54cf4c7b5f49a from qemu
This commit is contained in:
Peter Maydell 2018-02-19 00:49:52 -05:00 committed by Lioncash
parent 7043ccee92
commit 293266a9d8
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
7 changed files with 7 additions and 12 deletions

View File

@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "exec/memory-internal.h" #include "exec/memory-internal.h"

View File

@ -19,6 +19,7 @@
/* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */ /* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */
#include "qemu/osdep.h"
#include "tcg.h" #include "tcg.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"

View File

@ -25,7 +25,7 @@
/* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */ /* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */
/* Needed early for CONFIG_BSD etc. */ /* Needed early for CONFIG_BSD etc. */
#include "config-host.h" #include "qemu/osdep.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "qemu/thread.h" #include "qemu/thread.h"

View File

@ -19,7 +19,7 @@
/* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */ /* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */
#include "config.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
#include "exec/memory.h" #include "exec/memory.h"

View File

@ -18,9 +18,8 @@
*/ */
/* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */ /* Modified for Unicorn Engine by Nguyen Anh Quynh, 2015 */
#include "config.h" #include "qemu/osdep.h"
#ifndef _WIN32 #ifndef _WIN32
#include <sys/types.h>
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
@ -29,7 +28,6 @@
#include "tcg.h" #include "tcg.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/qdev.h" #include "hw/qdev.h"
#include "qemu/osdep.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "exec/memory.h" #include "exec/memory.h"

View File

@ -22,17 +22,11 @@
#include <winsock2.h> #include <winsock2.h>
#include <windows.h> #include <windows.h>
#else #else
#include <sys/types.h>
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
#include <stdarg.h> #include "qemu/osdep.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "unicorn/platform.h" #include "unicorn/platform.h"
#include "config.h"
#include "qemu-common.h" #include "qemu-common.h"
#define NO_CPU_IO_DEFS #define NO_CPU_IO_DEFS
#include "cpu.h" #include "cpu.h"

View File

@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qom/cpu.h" #include "qom/cpu.h"