Received: from eggs.gnu.org ([208.118.235.92]:53351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPLHY-0001ji-Ss for qemu-devel@nongnu.org; Tue, 01 May 2012 18:10:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPLHW-0006ma-R8 for qemu-devel@nongnu.org; Tue, 01 May 2012 18:10:52 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42858 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPLHW-0006lr-DR for qemu-devel@nongnu.org; Tue, 01 May 2012 18:10:50 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 2 May 2012 00:10:43 +0200 Message-Id: <1335910243-14561-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH RESEND for-1.1] linux-user: Clean up interim solution for exit syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, peter.maydell@linaro.org, Riku Voipio , =?UTF-8?q?Andreas=20F=C3=A4rber?= , anthony@codemonkey.ws After all target CPUs have been QOM'ified, we no longer need an #ifdef to switch between object_delete() and g_free() in NPTL thread exit. Signed-off-by: Andreas F=C3=A4rber --- linux-user/syscall.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7128618..801b8ed 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5045,11 +5045,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_lo= ng arg1, NULL, NULL, 0); } thread_env =3D NULL; -#ifdef ENV_GET_CPU object_delete(OBJECT(ENV_GET_CPU(cpu_env))); -#else - g_free(cpu_env); -#endif g_free(ts); pthread_exit(NULL); } --=20 1.7.7