qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Question about Linux user space emulation


From: Laurent DESNOGUES
Subject: [Qemu-devel] Question about Linux user space emulation
Date: Thu, 24 Jun 2004 12:47:21 +0200

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 address@hidden and
delete it from your system.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]