From patchwork Tue Jun 17 14:56:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 32047 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 82B59206A0 for ; Tue, 17 Jun 2014 15:07:18 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id 20sf18494681yks.3 for ; Tue, 17 Jun 2014 08:07:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:in-reply-to:references:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=X1QnW7F8WdTFn2v5rI8wkFYvdaHkR6pijPdVy3ybRhc=; b=c3tDOJPqeOugq9UkeBG64RGkMUoIpadDmhBrKC3e/4f5CqKoZj+o5CqNgKwDYbLrvb OJ9zBsDRnoNe0hfAqYOkQBAGTJTqW1JPsFZHYouZGblkGWd/OCbzhpp7Blp3nU+zrqY2 Q0OGZZMCeieN63Z4oSh4XqrVUIuNVen+DNP62gqow799V5wnz4QbFO9AlTqsUhG2FYpP 7KaXLTkezLucuXA+SqMu/9Y9cWOm+5z/SyCgFSXI3AC6DGSFtIivAcGoR2iROQ82+OUA jtXXGsl6dA/lbHyejYoiMdyYbEjCa7VAL5Z+IyzFWiAmQVDk525+8AZnMcAjCDzOSybq aESQ== X-Gm-Message-State: ALoCoQljHcSyJgk+QJulwEosoovW7rkRw+Nj8SEkOyMvm40wOBPJ0307AguvdQuBHEBuRvTtHmxX X-Received: by 10.52.184.104 with SMTP id et8mr2303183vdc.4.1403017638221; Tue, 17 Jun 2014 08:07:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.18.230 with SMTP id 93ls2997844qgf.77.gmail; Tue, 17 Jun 2014 08:07:18 -0700 (PDT) X-Received: by 10.221.69.68 with SMTP id yb4mr886876vcb.49.1403017638146; Tue, 17 Jun 2014 08:07:18 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id 13si5562512vdg.106.2014.06.17.08.07.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 08:07:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hy4so6543498vcb.34 for ; Tue, 17 Jun 2014 08:07:18 -0700 (PDT) X-Received: by 10.58.195.234 with SMTP id ih10mr1545637vec.41.1403017638027; Tue, 17 Jun 2014 08:07:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp216417vcb; Tue, 17 Jun 2014 08:07:17 -0700 (PDT) X-Received: by 10.140.83.73 with SMTP id i67mr34455975qgd.22.1403017637278; Tue, 17 Jun 2014 08:07:17 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n89si7944263qge.73.2014.06.17.08.07.17 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 08:07:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:51247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwuyi-0003Qs-Q8 for patch@linaro.org; Tue, 17 Jun 2014 11:07:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwup0-0005hc-QV for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wwuor-0004PZ-Px for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:57:14 -0400 Received: from afflict.kos.to ([92.243.29.197]:46243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwuor-0004P7-Ik for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:57:05 -0400 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 5B88326546; Tue, 17 Jun 2014 16:57:03 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 17 Jun 2014 17:56:49 +0300 Message-Id: <945473847b4bb0869915aa47dabc4d2abbc87bdb.1403016610.git.riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: peter.maydell@linaro.org, Riku Voipio Subject: [Qemu-devel] [PULL v2 06/17] signal/sparc/restore_fpu_state: remove 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Riku Voipio A function never called from anywhere, obviously half-complete. Remove function and if someone wants to complete this, please check the old version out of git history. Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/signal.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 827638b..2a1c681 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2380,43 +2380,6 @@ sigsegv: unlock_user(sf, sf_addr, sizeof(struct target_signal_frame)); force_sig(TARGET_SIGSEGV); } -static inline int -restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu) -{ - int err; -#if 0 -#ifdef CONFIG_SMP - if (current->flags & PF_USEDFPU) - regs->psr &= ~PSR_EF; -#else - if (current == last_task_used_math) { - last_task_used_math = 0; - regs->psr &= ~PSR_EF; - } -#endif - current->used_math = 1; - current->flags &= ~PF_USEDFPU; -#endif -#if 0 - if (verify_area (VERIFY_READ, fpu, sizeof(*fpu))) - return -EFAULT; -#endif - - /* XXX: incorrect */ - err = copy_from_user(&env->fpr[0], fpu->si_float_regs[0], - (sizeof(abi_ulong) * 32)); - err |= __get_user(env->fsr, &fpu->si_fsr); -#if 0 - err |= __get_user(current->thread.fpqdepth, &fpu->si_fpqdepth); - if (current->thread.fpqdepth != 0) - err |= __copy_from_user(¤t->thread.fpqueue[0], - &fpu->si_fpqueue[0], - ((sizeof(unsigned long) + - (sizeof(unsigned long *)))*16)); -#endif - return err; -} - static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info,