From 183aa45407e7b665d88842f8e288f6bbcac15e22 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 25 Apr 2010 20:00:33 +0000 Subject: microblaze: remove dead assignments, spotted by clang analyzer Value stored is never read. Signed-off-by: Blue Swirl --- target-microblaze/mmu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'target-microblaze/mmu.c') diff --git a/target-microblaze/mmu.c b/target-microblaze/mmu.c index d868ac56e..b38f7d98b 100644 --- a/target-microblaze/mmu.c +++ b/target-microblaze/mmu.c @@ -60,8 +60,7 @@ static void mmu_change_pid(CPUState *env, unsigned int newpid) { struct microblaze_mmu *mmu = &env->mmu; unsigned int i; - unsigned int tlb_size; - uint32_t tlb_tag, mask, t; + uint32_t t; if (newpid & ~0xff) qemu_log("Illegal rpid=%x\n", newpid); @@ -70,10 +69,6 @@ static void mmu_change_pid(CPUState *env, unsigned int newpid) /* Lookup and decode. */ t = mmu->rams[RAM_TAG][i]; if (t & TLB_VALID) { - tlb_size = tlb_decode_size((t & TLB_PAGESZ_MASK) >> 7); - mask = ~(tlb_size - 1); - - tlb_tag = t & TLB_EPN_MASK; if (mmu->tids[i] && ((mmu->regs[MMU_R_PID] & 0xff) == mmu->tids[i])) mmu_flush_idx(env, i); } -- cgit v1.2.3