]> git.proxmox.com Git - mirror_qemu.git/commitdiff
linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa arch
authorHelge Deller <deller@gmx.de>
Sun, 18 Sep 2022 19:45:51 +0000 (21:45 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 27 Sep 2022 07:29:33 +0000 (09:29 +0200)
On the parisc architecture the stack grows upwards.
Move the TASK_UNMAPPED_BASE to high memory area as it's done by the
kernel on physical machines.

Signed-off-by: Helge Deller <deller@gmx.de>
Message-Id: <20220918194555.83535-9-deller@gmx.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/mmap.c

index 6a828e8418a755e6d2758886a07e96cd16e75221..83fdae7034ea1f2304380597168b5f1ff0bb5238 100644 (file)
@@ -253,8 +253,12 @@ static int mmap_frag(abi_ulong real_start,
 # define TASK_UNMAPPED_BASE  (1ul << 38)
 #endif
 #else
+#ifdef TARGET_HPPA
+# define TASK_UNMAPPED_BASE  0xfa000000
+#else
 # define TASK_UNMAPPED_BASE  0x40000000
 #endif
+#endif
 abi_ulong mmap_next_start = TASK_UNMAPPED_BASE;
 
 unsigned long last_brk;