[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/7] linux-user/hppa: Fix TARGET_MAP_TYPE
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 5/7] linux-user/hppa: Fix TARGET_MAP_TYPE |
Date: |
Tue, 31 Oct 2017 13:53:56 +0100 |
From: Helge Deller <address@hidden>
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 <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
Message-ID: <address@hidden>
---
linux-user/syscall_defs.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 38339ecb9a..a6ed30d70e 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -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)
--
2.13.6
- [Qemu-devel] [PATCH 0/7] linux-user fixes, mostly for hppa, Richard Henderson, 2017/10/31
- [Qemu-devel] [PATCH 1/7] linux-user: Restrict usage of sa_restorer, Richard Henderson, 2017/10/31
- [Qemu-devel] [PATCH 2/7] linux-user/hppa: Fix TARGET_SA_* defines, Richard Henderson, 2017/10/31
- [Qemu-devel] [PATCH 3/7] linux-user/hppa: Fix cpu_clone_regs, Richard Henderson, 2017/10/31
- [Qemu-devel] [PATCH 4/7] linux-user/hppa: Fix typo for TARGET_NR_epoll_wait, Richard Henderson, 2017/10/31
- [Qemu-devel] [PATCH 5/7] linux-user/hppa: Fix TARGET_MAP_TYPE,
Richard Henderson <=
- [Qemu-devel] [PATCH 6/7] linux-user/hppa: Fix TARGET_F_RDLCK, TARGET_F_WRLCK, TARGET_F_UNLCK, Richard Henderson, 2017/10/31
- [Qemu-devel] [PATCH 7/7] linux-user: Handle TARGET_MAP_STACK and TARGET_MAP_HUGETLB, Richard Henderson, 2017/10/31