Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-06-16 Thread Richard Henderson
On 06/15/2011 11:14 PM, Khansa Butt wrote: > for my MIPS64 bit statically linked ELF the variables loaddr and hiaddr have > 36 bit values. > for probing guest_base these values are rounded to 32 bit as my underlying OS > is 32 bit Fedore13 Those last 8 words are the Real Problem. We don't suppo

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-06-15 Thread Khansa Butt
This is the case for 64 bit guest user mode static binary on 32 bit host. Dynamically linked binary has not this problem see in elfload.c:load_elf_image() for (i = 0; i < ehdr->e_phnum; ++i) { if(phdr[i].p_type == PT_INTERP) dyn_link = 1; if (phdr[i].p_type == PT_LOAD) {

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-06-08 Thread Khansa Butt
please see inline comments at the end. On Fri, Apr 29, 2011 at 2:01 PM, Aurelien Jarno wrote: > On Mon, Apr 25, 2011 at 04:54:19PM +0500, Khansa Butt wrote: > > please see inline comments highlighted in red color. > > > > On Wed, Apr 13, 2011 at 2:32 AM, Aurelien Jarno >wrote: > > > > > [I don't

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-05-03 Thread Khansa Butt
I have made following changes addr = env->lladdr; addr &= qemu_host_page_mask; page_addr = addr & TARGET_PAGE_MASK; start_exclusive(); mmap_lock(); flags = page_get_flags(page_addr); now return to elfload.c I have a simple hello world mips64 binary for which I have two loadable segments so fol

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-04-29 Thread Khansa Butt
Please see comments highlighted in green. On Fri, Apr 29, 2011 at 2:01 PM, Aurelien Jarno wrote: > On Mon, Apr 25, 2011 at 04:54:19PM +0500, Khansa Butt wrote: > > please see inline comments highlighted in red color. > > > > On Wed, Apr 13, 2011 at 2:32 AM, Aurelien Jarno >wrote: > > > > > [I do

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-04-29 Thread Aurelien Jarno
On Mon, Apr 25, 2011 at 04:54:19PM +0500, Khansa Butt wrote: > please see inline comments highlighted in red color. > > On Wed, Apr 13, 2011 at 2:32 AM, Aurelien Jarno wrote: > > > [I don't know very well linux-user, it would be nice to Cc: Riku Voipio, > > the linux-user maintainer for the next

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-04-25 Thread Khansa Butt
please see inline comments highlighted in red color. On Wed, Apr 13, 2011 at 2:32 AM, Aurelien Jarno wrote: > [I don't know very well linux-user, it would be nice to Cc: Riku Voipio, > the linux-user maintainer for the next version.] > > On Sat, Apr 09, 2011 at 04:02:31PM +0500, Khansa Butt wrot

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-04-12 Thread Aurelien Jarno
[I don't know very well linux-user, it would be nice to Cc: Riku Voipio, the linux-user maintainer for the next version.] On Sat, Apr 09, 2011 at 04:02:31PM +0500, Khansa Butt wrote: > From e96e20e50cada1c9e1b65de5925281cdd5659746 Mon Sep 17 00:00:00 2001 > From: Ehsan-ul-Haq & Khansa Butt > Dat