qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Question about Linux user space emulation
@ 2004-06-24 10:47 Laurent DESNOGUES
  2004-06-24 14:03 ` [Qemu-devel] Finally found that savevm bug Johannes Schindelin
  0 siblings, 1 reply; 3+ messages in thread
From: Laurent DESNOGUES @ 2004-06-24 10:47 UTC (permalink / raw)
  To: qemu-devel

I have what may be a stupid question.

In syscall.c, for syscall TARGET_NR_sigprocmask, the code reads
as:

>   sigset_t set, oldset, *set_ptr;
>   target_ulong *pset = (void *)arg2, *poldset = (void *)arg3;
>   if (pset) {
>     ...
>     target_to_host_old_sigset(&set, pset);
>   }

and

>   void target_to_host_old_sigset(sigset_t *sigset,
>                                  const target_ulong *old_sigset)
>   {
>     target_sigset_t d;
>     int i;
>
>     d.sig[0] = *old_sigset;

This translates to:

> d.sig[0] = *arg2;

Where arg2 is coming from the target.

How can this work without translating the arg2 contents to host
address space?


Laurent



*******************************************************************************

This E-mail is from ESTEREL TECHNOLOGIES. The E-mail and any files
transmitted with it are confidential and intended solely for the use of the
individual or entity to whom they are addressed. Any unauthorised
dissemination, copy, use or disclosure of this E-mail or of any of its
attachments is strictly prohibited and may be illegal. If you have received
the E-mail in error please notify disclaimer@esterel-technologies.com and
delete it from your system.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-26 18:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 10:47 [Qemu-devel] Question about Linux user space emulation Laurent DESNOGUES
2004-06-24 14:03 ` [Qemu-devel] Finally found that savevm bug Johannes Schindelin
2004-06-26 18:00   ` Jim C. Brown

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 NNTP newsgroup(s).