Received: from eggs.gnu.org ([2001:4830:134:3::10]:34356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYHbc-0001WM-9s for qemu-devel@nongnu.org; Tue, 23 Feb 2016 13:22:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYHbb-0006WI-0x for qemu-devel@nongnu.org; Tue, 23 Feb 2016 13:22:39 -0500 Received: from roura.ac.upc.es ([147.83.33.10]:36350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYHba-0006W9-Me for qemu-devel@nongnu.org; Tue, 23 Feb 2016 13:22:38 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Tue, 23 Feb 2016 19:22:30 +0100 Message-Id: <145625174988.12025.2541064572501885088.stgit@localhost> In-Reply-To: <145625172744.12025.2350972792125742783.stgit@localhost> References: <145625172744.12025.2350972792125742783.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 4/5] user: Set current vCPU during syscall execution List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Riku Voipio , Stefan Hajnoczi Will be later used by tracing events. Signed-off-by: Llu=C3=ADs Vilanova --- bsd-user/syscall.c | 2 ++ linux-user/syscall.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c index 35f784c..ce941b0 100644 --- a/bsd-user/syscall.c +++ b/bsd-user/syscall.c @@ -320,6 +320,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, a= bi_long arg1, #ifdef DEBUG gemu_log("freebsd syscall %d\n", num); #endif + current_cpu =3D cpu; /* accessed by tracing events*= / if(do_strace) print_freebsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6); =20 @@ -399,6 +400,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, a= bi_long arg1, #endif if (do_strace) print_freebsd_syscall_ret(num, ret); + current_cpu =3D NULL; return ret; efault: ret =3D -TARGET_EFAULT; diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 54ce14a..52f9d85 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5859,6 +5859,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_lon= g arg1, #ifdef DEBUG gemu_log("syscall %d", num); #endif + current_cpu =3D cpu; /* accessed by tracing events*= / if(do_strace) print_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6); =20 @@ -10240,6 +10241,7 @@ fail: #endif if(do_strace) print_syscall_ret(num, ret); + current_cpu =3D NULL; return ret; efault: ret =3D -TARGET_EFAULT;