Re: [Qemu-devel] [PATCH 2/2] linux-user: fix 32bit g2h()/h2g()

2018-08-10 Thread Laurent Vivier
Le 10/08/2018 à 21:30, Richard Henderson a écrit : > On 08/10/2018 11:53 AM, Laurent Vivier wrote: >> sparc32plus has 64bit long type but only 32bit virtual address space. >> >> For instance, "apt-get upgrade" failed because of a mmap()/msync() >> sequence. >> >> mmap() returned 0xff252000 but msyn

Re: [Qemu-devel] [PATCH 2/2] linux-user: fix 32bit g2h()/h2g()

2018-08-10 Thread Richard Henderson
On 08/10/2018 11:53 AM, Laurent Vivier wrote: > sparc32plus has 64bit long type but only 32bit virtual address space. > > For instance, "apt-get upgrade" failed because of a mmap()/msync() > sequence. > > mmap() returned 0xff252000 but msync() used g2h(0xff252000) > to find the host addre

[Qemu-devel] [PATCH 2/2] linux-user: fix 32bit g2h()/h2g()

2018-08-10 Thread Laurent Vivier
sparc32plus has 64bit long type but only 32bit virtual address space. For instance, "apt-get upgrade" failed because of a mmap()/msync() sequence. mmap() returned 0xff252000 but msync() used g2h(0xff252000) to find the host address. The "(target_ulong)" in g2h() doesn't fix the address be