QEMU-Devel Archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Signal handling for i386-darwin-user on Mac Intel
@ 2007-02-05  6:11 Ilya Shar
  0 siblings, 0 replies; only message in thread
From: Ilya Shar @ 2007-02-05  6:11 UTC (permalink / raw
  To: qemu-devel

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 be Linux-specific and gives compilation
errors on a Mac:

/Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c: In
function 'cpu_x86_signal_handler':
/Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:1307:
error: request for member 'gregs' in something not a
structure or union
/Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:1307:
error: 'EIP' undeclared (first use in this function)
... 

When I dummy-out cpu_signal_handler() the binary
compiles, but I cannot run anything because the
signals are not handled. 

Is there a patch/solution to this?  

Thanks again for your help! 
Ilya 




 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-05  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-05  6:11 [Qemu-devel] Signal handling for i386-darwin-user on Mac Intel Ilya Shar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).