[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH] ppc: remove unused variables
From: |
Andreas Färber |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH] ppc: remove unused variables |
Date: |
Mon, 06 Feb 2012 16:21:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0 |
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=unused-but-set-variable]
>
> Signed-off-by: Blue Swirl <address@hidden>
Tested-by: Andreas Färber <address@hidden>
Alex?
Andreas
> ---
> 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;
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg