[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v4 04/32] linux-user: Update TASK_UNMAPPED_BASE for aarch64
From: |
Laurent Vivier |
Subject: |
[PULL v4 04/32] linux-user: Update TASK_UNMAPPED_BASE for aarch64 |
Date: |
Fri, 20 Mar 2020 16:23:40 +0100 |
From: Lirong Yuan <address@hidden>
This change updates TASK_UNMAPPED_BASE (the base address for guest programs)
for aarch64. It is needed to allow qemu to work with Thread Sanitizer (TSan),
which has specific boundary definitions for memory mappings on different
platforms:
https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/tsan/rtl/tsan_platform.h
Signed-off-by: Lirong Yuan <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
linux-user/mmap.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 8685f02e7e90..e37803379747 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -184,7 +184,11 @@ static int mmap_frag(abi_ulong real_start,
}
#if HOST_LONG_BITS == 64 && TARGET_ABI_BITS == 64
+#ifdef TARGET_AARCH64
+# define TASK_UNMAPPED_BASE 0x5500000000
+#else
# define TASK_UNMAPPED_BASE (1ul << 38)
+#endif
#else
# define TASK_UNMAPPED_BASE 0x40000000
#endif
--
2.25.1
- [PULL v4 00/32] Linux user for 5.0 patches, Laurent Vivier, 2020/03/20
- [PULL v4 01/32] linux-user: Add AT_EXECFN auxval, Laurent Vivier, 2020/03/20
- [PULL v4 03/32] linux-user: fix socket() strace, Laurent Vivier, 2020/03/20
- [PULL v4 04/32] linux-user: Update TASK_UNMAPPED_BASE for aarch64,
Laurent Vivier <=
- [PULL v4 02/32] linux-user: do prlimit selectively, Laurent Vivier, 2020/03/20
- [PULL v4 06/32] linux-user/syscall: Add support for clock_gettime64/clock_settime64, Laurent Vivier, 2020/03/20
- [PULL v4 05/32] linux-user: Protect more syscalls, Laurent Vivier, 2020/03/20
- [PULL v4 07/32] linux-user/riscv: Update the syscall_nr's to the 5.5 kernel, Laurent Vivier, 2020/03/20
- [PULL v4 08/32] linux-user: introduce parameters to generate syscall_nr.h, Laurent Vivier, 2020/03/20
- [PULL v4 10/32] linux-user, hppa: add syscall table generation support, Laurent Vivier, 2020/03/20
- [PULL v4 12/32] linux-user, xtensa: add syscall table generation support, Laurent Vivier, 2020/03/20
- [PULL v4 17/32] linux-user, s390x: remove syscall definitions for !TARGET_S390X, Laurent Vivier, 2020/03/20
- [PULL v4 09/32] linux-user, alpha: add syscall table generation support, Laurent Vivier, 2020/03/20
- [PULL v4 13/32] linux-user, sh4: add syscall table generation support, Laurent Vivier, 2020/03/20