From patchwork Thu Jun 2 11:53:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 98387 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CF698B6F9B for ; Thu, 2 Jun 2011 22:52:43 +1000 (EST) Received: from localhost ([::1]:41721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS7OB-0002uz-7A for incoming@patchwork.ozlabs.org; Thu, 02 Jun 2011 08:52:39 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS6UG-0005or-Gx for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS6UF-0005ls-4E for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS6UE-0005ld-Hc for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:50 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p52BsnZ6015076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 2 Jun 2011 07:54:49 -0400 Received: from neno.mitica (vpn1-5-74.ams2.redhat.com [10.36.5.74]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p52BsYdT015781; Thu, 2 Jun 2011 07:54:48 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 2 Jun 2011 13:53:46 +0200 Message-Id: <60dd6cb1f888183df83a2d6b6b98e17c5991a093.1307014902.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 11/14] linux-user: fpu_save_addr is not used X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It is only read to set the error code? Signed-off-by: Juan Quintela --- linux-user/signal.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index c7a375f..edf4cdb 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2122,7 +2122,7 @@ long do_sigreturn(CPUState *env) } err |= __get_user(fpu_save_addr, &sf->fpu_save); - + (void)fpu_save_addr; //if (fpu_save) // err |= restore_fpu_state(env, fpu_save); @@ -2295,6 +2295,7 @@ void sparc64_set_context(CPUSPARCState *env) abi_ulong) != 0) goto do_sigsegv; err |= __get_user(fenab, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_enab)); + (void)fenab; err |= __get_user(env->fprs, &(ucp->tuc_mcontext.mc_fpregs.mcfpu_fprs)); { uint32_t *src, *dst;