From patchwork Wed Apr 23 13:11:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 28887 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 409E82057C for ; Wed, 23 Apr 2014 13:16:18 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id b6sf3850015yha.0 for ; Wed, 23 Apr 2014 06:16: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: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=sG9vwOyqnJsCM4bsF0nGCtW268620QFM9CAKe8fGeTI=; b=k3c2h7qfwMPvvcYr2qYxjmc4uobL4Q6h8NyC7J0npPFhhQApZjx3+BwxH/nzy7ogvx dd28et1yOGkShU37/MFoNVDwEqBF2wkoAn4fYO4+UkxBM8jQv835wUUXhQnIuCZTYl3M 8dvFkzpiohqlwFe2YFEvvgyJyPDEXTkNd5MOQLzcfkya6rDX4p5F7ARqxtRg73l1/yi+ YZN3M8n2cWn8zL/7CTXg0mFkV7Oyav33mlmLT6WwzftbynN2H7xcBH6YciIJqGJmNjL3 SV4tvWWgZcjSfh4CqqN3RPtXWOfxC7HPECc3iO7ceARtMl42yQpYW8upmqz7YETrRMWO /1OQ== X-Gm-Message-State: ALoCoQl3oYPi9r+VT/nXP1oS19w/2diHnuTr05uO0zFB1gpcxIgTNfCSkek8+kEBEtuITeOzf6As X-Received: by 10.236.92.204 with SMTP id j52mr22999713yhf.26.1398258978008; Wed, 23 Apr 2014 06:16:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.87 with SMTP id v81ls588553qge.0.gmail; Wed, 23 Apr 2014 06:16:17 -0700 (PDT) X-Received: by 10.221.63.1 with SMTP id xc1mr191261vcb.35.1398258977848; Wed, 23 Apr 2014 06:16:17 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id jl10si159907veb.69.2014.04.23.06.16.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 06:16:17 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so1109257veb.11 for ; Wed, 23 Apr 2014 06:16:17 -0700 (PDT) X-Received: by 10.220.191.134 with SMTP id dm6mr41979187vcb.16.1398258977764; Wed, 23 Apr 2014 06:16:17 -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.220.221.72 with SMTP id ib8csp103192vcb; Wed, 23 Apr 2014 06:16:17 -0700 (PDT) X-Received: by 10.229.66.133 with SMTP id n5mr57082215qci.0.1398258977021; Wed, 23 Apr 2014 06:16:17 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p8si420334qag.168.2014.04.23.06.16.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Apr 2014 06:16: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]:60904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcx28-0003Z2-Fd for patch@linaro.org; Wed, 23 Apr 2014 09:16:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcwyE-0001km-GG for qemu-devel@nongnu.org; Wed, 23 Apr 2014 09:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wcwy8-0001JJ-G0 for qemu-devel@nongnu.org; Wed, 23 Apr 2014 09:12:14 -0400 Received: from afflict.kos.to ([92.243.29.197]:42802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcwy8-0001Ie-9u for qemu-devel@nongnu.org; Wed, 23 Apr 2014 09:12:08 -0400 Received: from localhost.localdomain (afflict [92.243.29.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id EEAA8264D4 for ; Wed, 23 Apr 2014 15:12:05 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 23 Apr 2014 16:11:57 +0300 Message-Id: <7bf1310d06fb13b3cc678f34ed80a12ca07dd703.1398257165.git.riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Subject: [Qemu-devel] [PATCH 06/13] RFC comment out restore_fpu_state (sparc) 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=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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, half-complete code never finished. ifdef completly out. Alternatively we could just kick it out as the half-ready code could be digged from git if needed. Signed-off-by: Riku Voipio --- linux-user/signal.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 8d2b6c9..2fb7fd1 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2367,11 +2367,11 @@ sigsegv: unlock_user(sf, sf_addr, sizeof(struct target_signal_frame)); force_sig(TARGET_SIGSEGV); } +#if 0 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; @@ -2383,27 +2383,22 @@ restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu) #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; } - +#endif static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info,