]> git.proxmox.com Git - mirror_qemu.git/commitdiff
linux-user: Split TARGET_PROT_* out of syscall_defs.h
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Jul 2023 20:40:35 +0000 (21:40 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 15 Jul 2023 07:02:32 +0000 (08:02 +0100)
Move the values into the per-target target_mman.h headers

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230707204054.8792-8-richard.henderson@linaro.org>

linux-user/aarch64/target_mman.h
linux-user/generic/target_mman.h
linux-user/mips/target_mman.h
linux-user/syscall_defs.h
linux-user/xtensa/target_mman.h

index e7ba6070fe7cca4677e2783626a944dcbfa2e887..f721295fe1aa21894ac42783b816c6d3372f97a5 100644 (file)
@@ -1 +1,9 @@
+#ifndef AARCH64_TARGET_MMAN_H
+#define AARCH64_TARGET_MMAN_H
+
+#define TARGET_PROT_BTI         0x10
+#define TARGET_PROT_MTE         0x20
+
 #include "../generic/target_mman.h"
+
+#endif
index 7b888fb7f83670e8544b050ac95eb6f83a6f2f06..ec76a91b46e64c384de0d8ee1fb4150377b71c93 100644 (file)
 #define TARGET_MAP_NORESERVE            0x4000
 #endif
 
-/* Other MAP flags are defined in asm-generic/mman-common.h */
+/* Defined in asm-generic/mman-common.h */
+#ifndef TARGET_PROT_SEM
+#define TARGET_PROT_SEM                 0x08
+#endif
+
 #ifndef TARGET_MAP_TYPE
 #define TARGET_MAP_TYPE                 0x0f
 #endif
index cd566c24b61ff252c758aa1103f11260e6b5d951..e97694aa4e4b772b2a09cd559ba25dd986112fab 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef MIPS_TARGET_MMAN_H
 #define MIPS_TARGET_MMAN_H
 
+#define TARGET_PROT_SEM                 0x10
+
 #define TARGET_MAP_NORESERVE            0x0400
 #define TARGET_MAP_ANONYMOUS            0x0800
 #define TARGET_MAP_GROWSDOWN            0x1000
index 041105b7a73c7763ef01fc8d69a5ec92f4916059..77ba343c85009063506bac61fe7b99cd80f3603d 100644 (file)
@@ -1227,17 +1227,6 @@ struct target_winsize {
 
 #include "termbits.h"
 
-#if defined(TARGET_MIPS) || defined(TARGET_XTENSA)
-#define TARGET_PROT_SEM         0x10
-#else
-#define TARGET_PROT_SEM         0x08
-#endif
-
-#ifdef TARGET_AARCH64
-#define TARGET_PROT_BTI         0x10
-#define TARGET_PROT_MTE         0x20
-#endif
-
 #include "target_mman.h"
 
 #if (defined(TARGET_I386) && defined(TARGET_ABI32))     \
index 3891bb5e07943ce55563dd43bc6ca2d52137a09a..3933771b5b3d8216228a2cf6a0927d272d02572d 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef XTENSA_TARGET_MMAN_H
 #define XTENSA_TARGET_MMAN_H
 
+#define TARGET_PROT_SEM                 0x10
+
 #define TARGET_MAP_NORESERVE            0x0400
 #define TARGET_MAP_ANONYMOUS            0x0800
 #define TARGET_MAP_GROWSDOWN            0x1000