Re: [Qemu-devel] Re: linux-user issues

2010-03-14 Thread malc
On Sun, 14 Mar 2010, malc wrote: > On Sun, 14 Mar 2010, Paul Brook wrote: > > > > On Sat, 13 Mar 2010, Paul Brook wrote: > > > > > a) elfload.c:859 > > > > > > > > > >#define TARGET_ELF_PAGESTART(_v) ((_v) & ~(unsigned > > > > > long)(TARGET_ELF_EXEC_PAGESIZE-1)) > > > > > > > > > >This

[Qemu-devel] Re: linux-user issues

2010-03-14 Thread malc
On Sun, 14 Mar 2010, Paul Brook wrote: > > On Sat, 13 Mar 2010, Paul Brook wrote: > > > > a) elfload.c:859 > > > > > > > >#define TARGET_ELF_PAGESTART(_v) ((_v) & ~(unsigned > > > > long)(TARGET_ELF_EXEC_PAGESIZE-1)) > > > > > > > >This means that for 64bit guest on a 32bit host the _v's

[Qemu-devel] Re: linux-user issues

2010-03-14 Thread Paul Brook
> On Sat, 13 Mar 2010, Paul Brook wrote: > > > a) elfload.c:859 > > > > > >#define TARGET_ELF_PAGESTART(_v) ((_v) & ~(unsigned > > > long)(TARGET_ELF_EXEC_PAGESIZE-1)) > > > > > >This means that for 64bit guest on a 32bit host the _v's value is > > >silently reduced to 32bit, the cast

[Qemu-devel] Re: linux-user issues

2010-03-12 Thread malc
On Sat, 13 Mar 2010, Paul Brook wrote: > > a) elfload.c:859 > > > >#define TARGET_ELF_PAGESTART(_v) ((_v) & ~(unsigned > > long)(TARGET_ELF_EXEC_PAGESIZE-1)) > > > >This means that for 64bit guest on a 32bit host the _v's value is > >silently reduced to 32bit, the cast should be abi

[Qemu-devel] Re: linux-user issues

2010-03-12 Thread Paul Brook
> a) elfload.c:859 > >#define TARGET_ELF_PAGESTART(_v) ((_v) & ~(unsigned > long)(TARGET_ELF_EXEC_PAGESIZE-1)) > >This means that for 64bit guest on a 32bit host the _v's value is >silently reduced to 32bit, the cast should be abi_ulong. > > b) mmap.c:428 > >real_start = start