From patchwork Tue Jun 3 17:59:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 31333 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 302B6203AC for ; Tue, 3 Jun 2014 17:59:25 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id oz11sf31383081veb.10 for ; Tue, 03 Jun 2014 10:59:24 -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:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=OsehrVB5LTKJe38maBXTt4cDk5FHLdCBuiD2WnHqHbU=; b=Q833rZuyQF1Sd19WEkVrlbtHpEpCCz7U1iNC3xSW19J0h6uBsNXOjxFPycTA1TFsRM uyr6vn7NSoyUf/MU/l3zAof9921ZyGcCutW2CXuBIkQl/L6d9j5FUzsTZ3PaQg6Hb5jI 49axveIF1y0cFp2Y5Mu93aUynHAm+2FWUjpq6OAwmKXn5keJtjX+3GiwSZNB8d936MfE 8mRI5c62Gk0cWpgLDQeXjuZBD8CVpMwNZo25fKji1mpgUAcxLhoXR/9vpdTF2eispo5F Rf8Kq+lTska8q9BmBqthBSkt2kONIH3jIFs3qEyM2jsFMYVQI/P+28ZiqOIGUR3TOJeu q8ng== X-Gm-Message-State: ALoCoQnbcq4zjGk0z0012794TET7AcF9D11LkdkTVXo1xt7nwBaWVZLpgvJZ9C3/Y3lFPyR/x8I0 X-Received: by 10.58.100.135 with SMTP id ey7mr666778veb.29.1401818364963; Tue, 03 Jun 2014 10:59:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.54 with SMTP id b51ls2720074qgf.48.gmail; Tue, 03 Jun 2014 10:59:24 -0700 (PDT) X-Received: by 10.52.75.40 with SMTP id z8mr2423292vdv.90.1401818364885; Tue, 03 Jun 2014 10:59:24 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id ni9si10465875veb.58.2014.06.03.10.59.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Jun 2014 10:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.171 as permitted sender) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id oz11so7458883veb.30 for ; Tue, 03 Jun 2014 10:59:24 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr38616890vcb.0.1401818364812; Tue, 03 Jun 2014 10:59:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp15054vcb; Tue, 3 Jun 2014 10:59:24 -0700 (PDT) X-Received: by 10.194.240.33 with SMTP id vx1mr11212751wjc.88.1401818363985; Tue, 03 Jun 2014 10:59:23 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ep7si3678935wic.48.2014.06.03.10.59.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Jun 2014 10:59:23 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WrszZ-0000Py-Bn; Tue, 03 Jun 2014 18:59:21 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org, "Edgar E. Iglesias" Subject: [PATCH] target-microblaze: Delete unused sign_extend() function Date: Tue, 3 Jun 2014 18:59:21 +0100 Message-Id: <1401818361-1581-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@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.128.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The sign_extend() function is unused; delete it. Signed-off-by: Peter Maydell Reviewed-by: Edgar E. Iglesias --- We have sextract() for this these days anyway. --- target-microblaze/translate.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 488df2d..50c214b 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -98,19 +98,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. */