From patchwork Mon Jun 23 23:05:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 32393 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9B84E20540 for ; Mon, 23 Jun 2014 23:05:50 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf25795553pdb.0 for ; Mon, 23 Jun 2014 16:05:49 -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=iBVju4wz1cMGYeTNjcWGtOSisGTlApXXs/thRLNhXLc=; b=LCj1UlC6MbCICSIFLImW59SbIZNWbpGMmdGAwCTMG7x0EK0lmQf076A42ESCeWPKqm OWgYcyu/UuR2zdseWFJsU0Opm3gfgc5mLBlLjH4irPWIkfELNlG0VT/535T/bWQdlI5f XblLD4atR4FwxcxL62htzES+qvYftCHiPLDwjeJJgh2XclDDFuqcrB/EHMf8S0zR2AmB AOPEmoOM1kkTTBzA4cTe6tiJkNitnr9RFOiKIp+wsS5F9ofViEjX+7NMT/Y2sK8cABLM xd87hZ56rVLRmPZ8v7hmdCPvFqVlUJoc1BWIfcUZ7ieknk43FZDmFLULEOEnV7qKWzmz aAHg== X-Gm-Message-State: ALoCoQlmk5eXOoRA2R6PQ7hrVXoOI9UkZx7k/qMwiUExi90rMI3okI1IaaI4LuspYE4fsE75lK8C X-Received: by 10.66.66.196 with SMTP id h4mr11394073pat.22.1403564749843; Mon, 23 Jun 2014 16:05:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.239 with SMTP id l102ls1976284qgd.81.gmail; Mon, 23 Jun 2014 16:05:49 -0700 (PDT) X-Received: by 10.52.13.98 with SMTP id g2mr42121vdc.46.1403564749714; Mon, 23 Jun 2014 16:05:49 -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 x1si9772347vem.40.2014.06.23.16.05.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Jun 2014 16:05:49 -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 i13so6632320veh.8 for ; Mon, 23 Jun 2014 16:05:49 -0700 (PDT) X-Received: by 10.58.165.106 with SMTP id yx10mr7642941veb.17.1403564749622; Mon, 23 Jun 2014 16:05:49 -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 tc5csp164157vcb; Mon, 23 Jun 2014 16:05:49 -0700 (PDT) X-Received: by 10.140.48.161 with SMTP id o30mr35492087qga.68.1403564749212; Mon, 23 Jun 2014 16:05:49 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id r69si24705324qgr.48.2014.06.23.16.05.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 23 Jun 2014 16:05:49 -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]:56343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDJ6-00066b-QX for patch@linaro.org; Mon, 23 Jun 2014 19:05:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDIY-0005lD-7a for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:05:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzDIV-00014O-SZ for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:05:14 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:48698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDIV-000148-Lw; Mon, 23 Jun 2014 19:05:11 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WzDIU-00047A-Ke; Tue, 24 Jun 2014 00:05:10 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 24 Jun 2014 00:05:09 +0100 Message-Id: <1403564710-15788-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1403564710-15788-1-git-send-email-peter.maydell@linaro.org> References: <1403564710-15788-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: qemu-ppc@nongnu.org, Alexander Graf Subject: [Qemu-devel] [PATCH 1/2] 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: 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.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 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 --- target-ppc/translate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 4801721..4099cdc 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) {