qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user: fix mips 32-on-64 prealloc case
@ 2013-01-03 13:17 Alexander Graf
  2013-01-03 17:19 ` Peter Maydell
  2013-01-08 15:45 ` Aurelien Jarno
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Graf @ 2013-01-03 13:17 UTC (permalink / raw)
  To: qemu-devel qemu-devel; +Cc: Riku Voipio, Michael Tokarev, Aurelien Jarno

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>
---
 linux-user/main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/linux-user/main.c b/linux-user/main.c
index c4d10ac..a2bc09d 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -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
-- 
1.7.12.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-08 15:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 13:17 [Qemu-devel] [PATCH] linux-user: fix mips 32-on-64 prealloc case Alexander Graf
2013-01-03 17:19 ` Peter Maydell
2013-01-03 17:24   ` Alexander Graf
2013-01-03 18:39     ` Eric Johnson
2013-01-03 18:50       ` Richard Henderson
2013-01-03 19:09         ` Eric Johnson
2013-01-08 15:45 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).