[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PULL 09/38] linux-user: Update TASK_UNMAPPED_BASE for aarch64

From: Laurent Vivier
Subject: [PULL 09/38] linux-user: Update TASK_UNMAPPED_BASE for aarch64
Date: Mon, 16 Mar 2020 17:15:21 +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 

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
 # define TASK_UNMAPPED_BASE  (1ul << 38)
 # define TASK_UNMAPPED_BASE  0x40000000

reply via email to

[Prev in Thread] Current Thread [Next in Thread]