[Qemu-devel] PATCH: darwin-user syscalls

2007-03-02 Thread Ilya Shar
Handling extra signals in syscall.c/syscalls.h. Patch is attached. Thanks, Ilya Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/s

Re: [Qemu-devel] Page protection and i386 cmpxchg8b

2007-02-26 Thread Ilya Shar
--- Pierre d'Herbemont <[EMAIL PROTECTED]> wrote: > ... > cvs diff -u would be easier to read for me. (or diff > -u). You could > send this patch to the qemu-devel, that would be > cool. > Pierre, Please see the diff file attached. > ... > Ouch! I have noticed the same: qemu can trigger bu

Re: [Qemu-devel] Page protection and i386 cmpxchg8b

2007-02-23 Thread Ilya Shar
--- Pierre d'Herbemont <[EMAIL PROTECTED]> wrote: Hi Pierre, Thanks for your reply - please see comments inserted below: > Hi Ilya! > > On 23 févr. 07, at 21:32, Ilya Shar wrote: > > > I'm running i386-darwin-usrer on i386 and some > apps > > (Safar

[Qemu-devel] Page protection and i386 cmpxchg8b

2007-02-23 Thread Ilya Shar
Hi, I'm running i386-darwin-usrer on i386 and some apps (Safari browser) crash because cmpxchg8b attempts to wrie to a qemu-allocated page which is readable but write-protected. When I comment out mprotect in exec.c //mprotect(g2h(page_addr), qemu_host_page_size, // (pr

[Qemu-devel] Please help fix an illegal instruction / SSE problem

2007-02-15 Thread Ilya Shar
Every Cocoa application I try to run under i386-darwin-user/qemu-i386 exits on an illegal instruction: Starting /Applications/Calculator.app/Contents/MacOS/Calculator with qemu queue_signal: sig=4 qemu: uncaught target signal 4 (Illegal instruction) - exiting The last block alwa

[Qemu-devel] Help with gdb on Mac OS

2007-02-11 Thread Ilya Shar
I am trying to step through i386-darwin-user/qemu-i386 in gdb but I am getting a KERN_PROTECTION_FAILURE fairly early in the run: (gdb) run /bin/ls Starting program: /Users/ilya/tmp/feb11/qemu-0.9.0/i386-darwin-user/qemu-i386 /bin/ls Reading symbols for shared libraries . done Starting /bin/ls wi

[Qemu-devel] Signal handling for i386-darwin-user on Mac Intel

2007-02-04 Thread Ilya Shar
Thanks to pointers/patches from Mike and Pierre, I can build i386-darwin-user binary. There is a glitch though with signal-handling. The following fragment in cpu_signal_handler() in cpu-exec.c pc = uc->uc_mcontext.gregs[REG_EIP]; trapno = uc->uc_mcontext.gregs[REG_TRAPNO]; appears to

Re: [Qemu-devel] Please help build qemu/darwin-user on Mac Intel

2007-02-03 Thread Ilya Shar
d'Herbemont wrote: > > > Hi, > > > > On 3 févr. 07, at 02:37, Ilya Shar wrote: > > > >> I am trying to build i386-darwin-user to run it > on an > >> x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3 > and > >> I'm getting com

[Qemu-devel] Please help build qemu/darwin-user on Mac Intel

2007-02-02 Thread Ilya Shar
Hi, I am trying to build i386-darwin-user to run it on an x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3 and I'm getting compiler errors right away: $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/darwine co qemu $ cd qemu/ $ ./configure --target-list=i386-darwin-user --cc=/opt/gcc3/bin/gcc $ make