ppc: remove unused variables
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 4 Feb 2012 11:47:17 +0000 (11:47 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 11 Feb 2012 11:03:50 +0000 (11:03 +0000)
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]

Tested-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-ppc/helper.c

index e56fac8684717a2fa21e095dd1c271e738ddecee..928fbcf3cbe99206ea80a927b63134abd03912f2 100644 (file)
@@ -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;