[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] linux-user: fix mips 32-on-64 prealloc case
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] linux-user: fix mips 32-on-64 prealloc case |
Date: |
Tue, 8 Jan 2013 16:45:16 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jan 03, 2013 at 02:17:18PM +0100, Alexander Graf wrote:
> 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 <address@hidden>
> ---
> 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
Thanks, applied.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net
Re: [Qemu-devel] [PATCH] linux-user: fix mips 32-on-64 prealloc case,
Aurelien Jarno <=