Re: [Qemu-devel] target_mmap and host vs target page sizes.

2007-09-30 Thread Blue Swirl
On 9/30/07, Edgar E. Iglesias <[EMAIL PROTECTED]> wrote: > On Sun, Sep 30, 2007 at 06:45:08PM +0300, Blue Swirl wrote: > > On 9/30/07, Edgar E. Iglesias <[EMAIL PROTECTED]> wrote: > > > With this updated patch, I can now reliably run statically linked sparc64 > > > programs on my 32 bit host. Dyna

Re: [Qemu-devel] target_mmap and host vs target page sizes.

2007-09-30 Thread Edgar E. Iglesias
On Sun, Sep 30, 2007 at 06:45:08PM +0300, Blue Swirl wrote: > On 9/30/07, Edgar E. Iglesias <[EMAIL PROTECTED]> wrote: > > With this updated patch, I can now reliably run statically linked sparc64 > > programs on my 32 bit host. Dynamically linked sparc64 programs reliably > > fail with an unhand

Re: [Qemu-devel] target_mmap and host vs target page sizes.

2007-09-30 Thread Blue Swirl
On 9/30/07, Edgar E. Iglesias <[EMAIL PROTECTED]> wrote: > With this updated patch, I can now reliably run statically linked sparc64 > programs on my 32 bit host. Dynamically linked sparc64 programs reliably fail > with an unhandled trap 0x37. qemu m68k reliably segfaults with and without > the

Re: [Qemu-devel] target_mmap and host vs target page sizes.

2007-09-30 Thread Edgar E. Iglesias
On Sun, Sep 30, 2007 at 11:53:20AM +0200, Edgar E. Iglesias wrote: % make > sparc64-unknown-linux-gnu-gcc -Wall -W -g -O2 -c -o ctest.o ctest.c > sparc64-unknown-linux-gnu-gcc -static ctest.o -o ctest > % file ctest > ctest: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for GNU/Linux

Re: [Qemu-devel] target_mmap and host vs target page sizes.

2007-09-30 Thread Edgar E. Iglesias
On Sun, Sep 30, 2007 at 10:27:45AM +0300, Blue Swirl wrote: > On 9/30/07, Edgar E. Iglesias <[EMAIL PROTECTED]> wrote: > > I tried the sparc64-linux-user target but it fails to run any of my > > programs both with and without the change. Similarly, the m68k-linux-user > > target also fails but it

Re: [Qemu-devel] target_mmap and host vs target page sizes.

2007-09-30 Thread Blue Swirl
On 9/30/07, Edgar E. Iglesias <[EMAIL PROTECTED]> wrote: > I tried the sparc64-linux-user target but it fails to run any of my programs > both with and without the change. Similarly, the m68k-linux-user target also > fails but it at least manages to Are you sure the program was really a 64-bit S

[Qemu-devel] target_mmap and host vs target page sizes.

2007-09-29 Thread Edgar E. Iglesias
Hello, I have cleaned up the mmap patch that corrects the alignment for un-fixed mappings when the target page-size is larger than the hosts. The error was found and the patch tested with the CRIS target port (not yet contributed) on a x86 host running GCC's c-torture tests for CRIS. Without th