mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 19:03:38 +08:00
linux-user: Drop unneeded includes from qemu.h
Trim down the #includes in qemu.h where we can, either by dropping unneeded headers or by moving them to user-internals.h. This includes deleting a couple of #includes that appear at weird points midway through the header file. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210908154405.15417-10-peter.maydell@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
85b4fa0cd1
commit
d0a7920eb4
@ -2,7 +2,6 @@
|
||||
#define QEMU_H
|
||||
|
||||
#include "cpu.h"
|
||||
#include "exec/exec-all.h"
|
||||
#include "exec/cpu_ldst.h"
|
||||
|
||||
#undef DEBUG_REMAP
|
||||
@ -163,8 +162,6 @@ typedef struct TaskState {
|
||||
struct target_sigaltstack sigaltstack_used;
|
||||
} __attribute__((aligned(16))) TaskState;
|
||||
|
||||
#include "qemu/log.h"
|
||||
|
||||
abi_long do_brk(abi_ulong new_brk);
|
||||
|
||||
/* user access */
|
||||
@ -349,5 +346,4 @@ void *lock_user_string(abi_ulong guest_addr);
|
||||
#define unlock_user_struct(host_ptr, guest_addr, copy) \
|
||||
unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0)
|
||||
|
||||
#include <pthread.h>
|
||||
#endif /* QEMU_H */
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#include "hostdep.h"
|
||||
#include "exec/user/thunk.h"
|
||||
#include "exec/exec-all.h"
|
||||
#include "qemu/log.h"
|
||||
|
||||
extern char *exec_path;
|
||||
void init_task_state(TaskState *ts);
|
||||
|
Loading…
Reference in New Issue
Block a user