[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 05/13] linux-user: Move includes of target-specif
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH v3 05/13] linux-user: Move includes of target-specific headers to end of qemu.h |
Date: |
Tue, 16 Jul 2013 18:44:52 +0100 |
The target-specific headers (target_cpu.h and target_signal.h)
might need to use the target-independent structure and function
definitions of qemu.h; so include them only at the bottom of
qemu.h, not the top.
Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
linux-user/qemu.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 6569608..8c420da 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -16,8 +16,6 @@
#include "exec/user/thunk.h"
#include "syscall_defs.h"
#include "syscall.h"
-#include "target_cpu.h"
-#include "target_signal.h"
#include "exec/gdbstub.h"
#include "qemu/queue.h"
@@ -454,4 +452,11 @@ static inline void *lock_user_string(abi_ulong guest_addr)
#include <pthread.h>
#endif
+/* Include target-specific struct and function definitions;
+ * they may need access to the target-independent structures
+ * above, so include them last.
+ */
+#include "target_cpu.h"
+#include "target_signal.h"
+
#endif /* QEMU_H */
--
1.7.9.5
- [Qemu-devel] [PATCH v3 00/13] linux-user: enable NPTL on everything, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 12/13] linux-user: Enable NPTL for x86-64, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 03/13] configure: Enable threading on all ppc and mips linux-user targets, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 06/13] linux-user: Enable NPTL for OpenRISC, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 05/13] linux-user: Move includes of target-specific headers to end of qemu.h,
Peter Maydell <=
- [Qemu-devel] [PATCH v3 08/13] linux-user: Enable NPTL for m68k, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 01/13] configure: Flip default of target_nptl, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 11/13] linux-user: Add i386 TLS setter, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 02/13] configure: Don't say target_nptl="no" if there is no linux-user target, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 10/13] linux-user: Clean up handling of clone() argument order, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 07/13] linux-user: Enable NPTL for SPARC targets, Peter Maydell, 2013/07/16
- [Qemu-devel] [PATCH v3 09/13] linux-user: Add missing 'break' in i386 get_thread_area syscall, Peter Maydell, 2013/07/16