From patchwork Tue Jun 10 16:08:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 31692 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5171A20675 for ; Tue, 10 Jun 2014 17:30:16 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id uz6sf15066851obc.4 for ; Tue, 10 Jun 2014 10:30:15 -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: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=fJ3q90EZVYO3FIgt219+wGIPOX9TDdir5qKpkWlSBCU=; b=OZ9xyYRttXHbifjTlXeGqEaBY3QfefdNf+b7VPLrz5zQ4t0gaosP8631qqMUiLceGK NV3k6uKPTyzx8WlRuxlB7q51U9MDKLGsefLNei+3pU81oaI2yFe0TYxBj2NKx9oFyAyj dCBdbBcRTvHfKI6Mwsn++z5czra9fO3Kn96/RSs6K3xlxudEEQJCaGEzk2kbz5IIh9ST xy52LQ51QS4X4ZyPDBNxbww9ZjHz8NkekUCt9P7r7aWa1FJbxu3fnud3EerzE/LFkEBJ pSqcWDzNIU6auoSr34pZno6wzPZJnRHBYP3BkFDT5frRjs8q4W4e0QzCJJQW8+kfc46w Fwaw== X-Gm-Message-State: ALoCoQl4KVJYLwgShmxhiF+6Kin7XQlAskXXzW9YLFpbC4KYXX6gUdsI/XP/3Nk7L194gB4y+MbT X-Received: by 10.50.67.38 with SMTP id k6mr11143437igt.8.1402421415873; Tue, 10 Jun 2014 10:30:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.49 with SMTP id z46ls2296997qge.50.gmail; Tue, 10 Jun 2014 10:30:15 -0700 (PDT) X-Received: by 10.52.68.72 with SMTP id u8mr28359882vdt.29.1402421415633; Tue, 10 Jun 2014 10:30:15 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id ob8si12059261vcb.22.2014.06.10.10.30.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 10:30:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 as permitted sender) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id oz11so3845703veb.22 for ; Tue, 10 Jun 2014 10:30:15 -0700 (PDT) X-Received: by 10.221.42.135 with SMTP id ty7mr33734059vcb.14.1402421415503; Tue, 10 Jun 2014 10:30:15 -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 vs6csp242650vcb; Tue, 10 Jun 2014 10:30:15 -0700 (PDT) X-Received: by 10.224.137.193 with SMTP id x1mr25345169qat.0.1402421414639; Tue, 10 Jun 2014 10:30:14 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l4si18810735qag.11.2014.06.10.10.30.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Jun 2014 10:30:14 -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]:41495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuPsE-0003eS-81 for patch@linaro.org; Tue, 10 Jun 2014 13:30:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuPqB-0000BQ-Nk for qemu-devel@nongnu.org; Tue, 10 Jun 2014 13:28:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuPpz-0000S4-BV for qemu-devel@nongnu.org; Tue, 10 Jun 2014 13:28:07 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:47495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuPpy-0000Rg-Pp; Tue, 10 Jun 2014 13:27:54 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 89266412D8; Tue, 10 Jun 2014 21:27:53 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 83A3B6BF; Tue, 10 Jun 2014 20:08:48 +0400 (MSK) Received: (nullmailer pid 13321 invoked by uid 1000); Tue, 10 Jun 2014 16:08:47 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Tue, 10 Jun 2014 20:08:33 +0400 Message-Id: <1402416523-13212-16-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1402416523-13212-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1402416523-13212-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Subject: [Qemu-devel] [PULL 15/25] target-microblaze: Delete unused sign_extend() function 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: mjt@tls.msk.ru X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 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: Peter Maydell The sign_extend() function is unused; delete it. Signed-off-by: Peter Maydell Reviewed-by: Edgar E. Iglesias Signed-off-by: Michael Tokarev --- target-microblaze/translate.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index c422bdc..03ea158 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -99,19 +99,6 @@ static const char *special_regnames[] = "sr16", "sr17", "sr18" }; -/* Sign extend at translation time. */ -static inline int sign_extend(unsigned int val, unsigned int width) -{ - int sval; - - /* LSL. */ - val <<= 31 - width; - sval = val; - /* ASR. */ - sval >>= 31 - width; - return sval; -} - static inline void t_sync_flags(DisasContext *dc) { /* Synch the tb dependent flags between translator and runtime. */