]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user/hppa: Fix TARGET_MAP_TYPE
authorHelge Deller <deller@gmx.de>
Tue, 31 Oct 2017 12:53:56 +0000 (13:53 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 7 Nov 2017 19:58:13 +0000 (21:58 +0200)
TARGET_MAP_TYPE needs to be 0x03 instead of 0x0f on the hppa
architecture, otherwise it conflicts with MAP_FIXED which is 0x04.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Message-ID: <20170311175019.GA7195@ls3530.fritz.box>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall_defs.h

index 38339ecb9a9c9d75b786a06b16e862db651d1c96..a6ed30d70e23d8df24342d0cbc412191f3471fb3 100644 (file)
@@ -1336,7 +1336,11 @@ struct target_winsize {
 /* Common */
 #define TARGET_MAP_SHARED      0x01            /* Share changes */
 #define TARGET_MAP_PRIVATE     0x02            /* Changes are private */
-#define TARGET_MAP_TYPE                0x0f            /* Mask for type of mapping */
+#if defined(TARGET_HPPA)
+#define TARGET_MAP_TYPE         0x03           /* Mask for type of mapping */
+#else
+#define TARGET_MAP_TYPE         0x0f           /* Mask for type of mapping */
+#endif
 
 /* Target specific */
 #if defined(TARGET_MIPS)