From patchwork Sat Feb 4 11:49:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 139576 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 00720104798 for ; Sat, 4 Feb 2012 22:49:34 +1100 (EST) Received: from localhost ([::1]:51121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rte7Y-00074v-FQ for incoming@patchwork.ozlabs.org; Sat, 04 Feb 2012 06:49:32 -0500 Received: from eggs.gnu.org ([140.186.70.92]:47197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rte7S-00074o-4c for qemu-devel@nongnu.org; Sat, 04 Feb 2012 06:49:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rte7Q-0006gh-Tu for qemu-devel@nongnu.org; Sat, 04 Feb 2012 06:49:26 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:45367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rte7Q-0006gV-PY; Sat, 04 Feb 2012 06:49:24 -0500 Received: by iahk25 with SMTP id k25so7475239iah.4 for ; Sat, 04 Feb 2012 03:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=RdjO7H4h1XZibwMpnEefqBP2EQ3/looVVPbG6KKaEYc=; b=kqqQI3NFotxzVGazRk/orzhyJ3I2nfoEgZnw+DsFxMwImnz7BWig9DrlVWftIvjIsa SW/JeCl4RCaJQ22jX+ukcvEGUeIPszZ5vOMkl5ZNGM4MCIKZQzglY+X+QToWYjD+0LZf 4FagtPKNQFqd4cTCzHIjMPaI+/aU0YPMBacsc= Received: by 10.50.189.137 with SMTP id gi9mr12587114igc.29.1328356164124; Sat, 04 Feb 2012 03:49:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.15.167 with HTTP; Sat, 4 Feb 2012 03:49:04 -0800 (PST) From: Blue Swirl Date: Sat, 4 Feb 2012 11:49:04 +0000 Message-ID: To: Alexander Graf , qemu-ppc@nongnu.org, qemu-devel X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.173 Subject: [Qemu-devel] [PATCH] ppc: remove unused variables 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Fix this error: /src/qemu/target-ppc/helper.c: In function 'booke206_tlb_to_page_size': /src/qemu/target-ppc/helper.c:1296:14: error: variable 'tlbncfg' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Blue Swirl Tested-by: Andreas Färber --- target-ppc/helper.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) return 1024ULL << tlbm_size; From 410e82944dbec49e3c21806dd4d54eb46bd264f3 Mon Sep 17 00:00:00 2001 Message-Id: <410e82944dbec49e3c21806dd4d54eb46bd264f3.1328356075.git.blauwirbel@gmail.com> From: Blue Swirl Date: Sat, 4 Feb 2012 11:47:17 +0000 Subject: [PATCH] ppc: remove unused variables Fix this error: /src/qemu/target-ppc/helper.c: In function 'booke206_tlb_to_page_size': /src/qemu/target-ppc/helper.c:1296:14: error: variable 'tlbncfg' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Blue Swirl --- target-ppc/helper.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/target-ppc/helper.c b/target-ppc/helper.c index e56fac8..928fbcf 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -1293,11 +1293,8 @@ void booke206_flush_tlb(CPUState *env, int flags, const int check_iprot) target_phys_addr_t booke206_tlb_to_page_size(CPUState *env, ppcmas_tlb_t *tlb) { - uint32_t tlbncfg; - int tlbn = booke206_tlbm_to_tlbn(env, tlb); int tlbm_size; - tlbncfg = env->spr[SPR_BOOKE_TLB0CFG + tlbn]; tlbm_size = (tlb->mas1 & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT; return 1024ULL << tlbm_size; -- 1.7.2.5