From patchwork Fri Jun 27 11:52:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 32619 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F23FB201EF for ; Fri, 27 Jun 2014 11:53:54 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf7056750ykp.9 for ; Fri, 27 Jun 2014 04:53:54 -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=m3KN/oG0D8xlCdmaPT+kFvSNBJoEZl9mTGPMqusQ3kg=; b=gse65QJmD+GPyHByOYZBEWQ/BQHoaF6suHEL7vT6nM2kimFZIvWvUdLduyj9Tk+Yj6 kldAoYgi9cY45BmM17ragWaxLVQ+RTdy84wYdQiifNQMr6kMJe/wmPm/udE8Cg43aPRD y/TGWMd8RvMHeQ/jiQtwiPYOl05YvehrU+JIfdLphjEfa75TeDFCWxgfJTv5Sh4ShErf 3Ismte0EqPXXurDl+EPYGhSqDJlZNFw7Ak+C9i58W3IjhduSZoSpE5ekehaCPuOTgPeH tpZJdTHkjRmLXiKnEMuRHLri+bTZXR+AK4T+TQuX3NWooCG+cK2/BcYSTN6SLtmdeWTv zWRg== X-Gm-Message-State: ALoCoQlumpESg/7qBdDDG/Fiu/wyWql/UtSbYLJxuPPyYQ0Onht3C/Pf9DbHtGG0UxdhNd4OqWYZ X-Received: by 10.58.143.107 with SMTP id sd11mr11973485veb.42.1403870034739; Fri, 27 Jun 2014 04:53:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.85 with SMTP id u79ls563728qgu.61.gmail; Fri, 27 Jun 2014 04:53:54 -0700 (PDT) X-Received: by 10.220.145.74 with SMTP id c10mr74863vcv.73.1403870034654; Fri, 27 Jun 2014 04:53:54 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id sp1si6236101vec.83.2014.06.27.04.53.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Jun 2014 04:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id db11so5158343veb.18 for ; Fri, 27 Jun 2014 04:53:54 -0700 (PDT) X-Received: by 10.52.23.71 with SMTP id k7mr16319377vdf.27.1403870034581; Fri, 27 Jun 2014 04:53:54 -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.37.5 with SMTP id tc5csp101119vcb; Fri, 27 Jun 2014 04:53:54 -0700 (PDT) X-Received: by 10.224.163.11 with SMTP id y11mr32559974qax.43.1403870034143; Fri, 27 Jun 2014 04:53:54 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 50si13558989qgt.50.2014.06.27.04.53.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Jun 2014 04:53:54 -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]:49562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Uj3-0004qE-PW for patch@linaro.org; Fri, 27 Jun 2014 07:53:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Uhl-0003LS-Uw for qemu-devel@nongnu.org; Fri, 27 Jun 2014 07:52:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Uhe-00084e-Lm for qemu-devel@nongnu.org; Fri, 27 Jun 2014 07:52:33 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35210 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Uhe-00084E-FS; Fri, 27 Jun 2014 07:52:26 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D2CAEAD90; Fri, 27 Jun 2014 11:52:25 +0000 (UTC) From: Alexander Graf To: qemu-ppc@nongnu.org Date: Fri, 27 Jun 2014 13:52:05 +0200 Message-Id: <1403869944-31927-14-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1403869944-31927-1-git-send-email-agraf@suse.de> References: <1403869944-31927-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [Qemu-devel] [PULL 13/32] target-ppc: Remove unused IMM and d extract helpers 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: agraf@suse.de 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.173 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 Remove the definition of the IMM and d extract helpers; these seem to have been added as part of the initial PPC support in 2003 but never actually used. Signed-off-by: Peter Maydell Signed-off-by: Alexander Graf --- target-ppc/translate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index c5d73d5..b501655 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -426,7 +426,6 @@ static inline uint32_t SPR(uint32_t opcode) return ((sprn >> 5) & 0x1F) | ((sprn & 0x1F) << 5); } /*** Get constants ***/ -EXTRACT_HELPER(IMM, 12, 8); /* 16 bits signed immediate value */ EXTRACT_SHELPER(SIMM, 0, 16); /* 16 bits unsigned immediate value */ @@ -459,8 +458,6 @@ EXTRACT_HELPER(FPFLM, 17, 8); EXTRACT_HELPER(FPW, 16, 1); /*** Jump target decoding ***/ -/* Displacement */ -EXTRACT_SHELPER(d, 0, 16); /* Immediate address */ static inline target_ulong LI(uint32_t opcode) {