From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuQQL-0004tH-Qc for qemu-devel@nongnu.org; Mon, 06 Feb 2012 10:24:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuQQD-00069X-V7 for qemu-devel@nongnu.org; Mon, 06 Feb 2012 10:24:09 -0500 Message-ID: <4F2FF002.4020001@suse.de> Date: Mon, 06 Feb 2012 16:21:38 +0100 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] ppc: remove unused variables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Blue Swirl , qemu-ppc@nongnu.org, qemu-devel Am 04.02.2012 12:49, schrieb Blue Swirl: > 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=3Dunused-but-set-variable] >=20 > Signed-off-by: Blue Swirl Tested-by: Andreas F=E4rber Alex? Andreas > --- > target-ppc/helper.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) >=20 > 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) >=20 > target_phys_addr_t booke206_tlb_to_page_size(CPUState *env, ppcmas_tlb= _t *tlb) > { > - uint32_t tlbncfg; > - int tlbn =3D booke206_tlbm_to_tlbn(env, tlb); > int tlbm_size; >=20 > - tlbncfg =3D env->spr[SPR_BOOKE_TLB0CFG + tlbn]; > tlbm_size =3D (tlb->mas1 & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT; >=20 > return 1024ULL << tlbm_size; --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg