]> git.proxmox.com Git - mirror_qemu.git/commitdiff
linux-user: fix mips 32-on-64 prealloc case
authorAlexander Graf <agraf@suse.de>
Thu, 3 Jan 2013 13:17:18 +0000 (14:17 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 8 Jan 2013 10:48:39 +0000 (11:48 +0100)
MIPS only supports 31 bits of virtual address space for user space, so let's
make sure we stay within that limit with our preallocated memory block.

This fixes the MIPS user space targets when executed without command line
option.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
linux-user/main.c

index f6c4c8d7a30b9b6dcbda37ee5024bc9182020fea..9ade1bfabd8fa3e9dbb1072012f42264761d0f3b 100644 (file)
@@ -57,7 +57,12 @@ int have_guest_base;
  * This way we will never overlap with our own libraries or binaries or stack
  * or anything else that QEMU maps.
  */
+# ifdef TARGET_MIPS
+/* MIPS only supports 31 bits of virtual address space for user space */
+unsigned long reserved_va = 0x77000000;
+# else
 unsigned long reserved_va = 0xf7000000;
+# endif
 #else
 unsigned long reserved_va;
 #endif