diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-01-13 18:49:40 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-01-13 18:49:40 +0000 |
commit | 701eed4bf92659a244f55a4eaffcde91b28c2c54 (patch) | |
tree | 2255ac0a62d7ae6c09622559313bf38475c4c28e /target-sparc | |
parent | cb95c2e44ece3791a6aa108bdb8745824dc999a3 (diff) | |
download | qemu-701eed4bf92659a244f55a4eaffcde91b28c2c54.tar.gz qemu-701eed4bf92659a244f55a4eaffcde91b28c2c54.tar.bz2 qemu-701eed4bf92659a244f55a4eaffcde91b28c2c54.zip |
Sparc32: remove unused variable, spotted by clang
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/helper.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c index e80147488e..f456f20f4a 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -107,12 +107,10 @@ static int get_physical_address(CPUState *env, target_phys_addr_t *physical, int access_perms = 0; target_phys_addr_t pde_ptr; uint32_t pde; - target_ulong virt_addr; int error_code = 0, is_dirty, is_user; unsigned long page_offset; is_user = mmu_idx == MMU_USER_IDX; - virt_addr = address & TARGET_PAGE_MASK; if ((env->mmuregs[0] & MMU_E) == 0) { /* MMU disabled */ // Boot mode: instruction fetches are taken from PROM @@ -174,18 +172,15 @@ static int get_physical_address(CPUState *env, target_phys_addr_t *physical, case 3: /* Reserved */ return (3 << 8) | (4 << 2); case 2: /* L3 PTE */ - virt_addr = address & TARGET_PAGE_MASK; page_offset = (address & TARGET_PAGE_MASK) & (TARGET_PAGE_SIZE - 1); } break; case 2: /* L2 PTE */ - virt_addr = address & ~0x3ffff; page_offset = address & 0x3ffff; } break; case 2: /* L1 PTE */ - virt_addr = address & ~0xffffff; page_offset = address & 0xffffff; } } |