aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-02-04 11:47:17 +0000
committerBlue Swirl <blauwirbel@gmail.com>2012-02-11 11:03:50 +0000
commit9d4df9c02866f39d3eef105033091f367cc7c29e (patch)
tree5d33256600028c0f37cd99e969acf94db794529e
parentbda254daf8016ef474afb51122c5c2d6cfc3b80e (diff)
downloadqemu-9d4df9c02866f39d3eef105033091f367cc7c29e.zip
qemu-9d4df9c02866f39d3eef105033091f367cc7c29e.tar.gz
qemu-9d4df9c02866f39d3eef105033091f367cc7c29e.tar.bz2
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] Tested-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--target-ppc/helper.c3
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;