qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH] ppc: remove unused variables


From: Blue Swirl
Subject: [Qemu-ppc] [PATCH] ppc: remove unused variables
Date: Sat, 4 Feb 2012 11:49:04 +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]

Signed-off-by: Blue Swirl <address@hidden>
---
 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.9.rc0

Attachment: 0001-ppc-remove-unused-variables.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]