microblaze: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
37ca43a141
commit
183aa45407
|
@ -164,7 +164,6 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
|
||||||
|
|
||||||
if (kernel_filename) {
|
if (kernel_filename) {
|
||||||
uint64_t entry, low, high;
|
uint64_t entry, low, high;
|
||||||
int kcmdline_len;
|
|
||||||
uint32_t base32;
|
uint32_t base32;
|
||||||
|
|
||||||
/* Boots a kernel elf binary. */
|
/* Boots a kernel elf binary. */
|
||||||
|
@ -187,7 +186,7 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
|
||||||
}
|
}
|
||||||
|
|
||||||
boot_info.cmdline = ddr_base + kernel_size + 8192;
|
boot_info.cmdline = ddr_base + kernel_size + 8192;
|
||||||
if (kernel_cmdline && (kcmdline_len = strlen(kernel_cmdline))) {
|
if (kernel_cmdline && strlen(kernel_cmdline)) {
|
||||||
pstrcpy_targphys("cmdline", boot_info.cmdline, 256, kernel_cmdline);
|
pstrcpy_targphys("cmdline", boot_info.cmdline, 256, kernel_cmdline);
|
||||||
}
|
}
|
||||||
/* Provide a device-tree. */
|
/* Provide a device-tree. */
|
||||||
|
|
|
@ -60,8 +60,7 @@ static void mmu_change_pid(CPUState *env, unsigned int newpid)
|
||||||
{
|
{
|
||||||
struct microblaze_mmu *mmu = &env->mmu;
|
struct microblaze_mmu *mmu = &env->mmu;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
unsigned int tlb_size;
|
uint32_t t;
|
||||||
uint32_t tlb_tag, mask, t;
|
|
||||||
|
|
||||||
if (newpid & ~0xff)
|
if (newpid & ~0xff)
|
||||||
qemu_log("Illegal rpid=%x\n", newpid);
|
qemu_log("Illegal rpid=%x\n", newpid);
|
||||||
|
@ -70,10 +69,6 @@ static void mmu_change_pid(CPUState *env, unsigned int newpid)
|
||||||
/* Lookup and decode. */
|
/* Lookup and decode. */
|
||||||
t = mmu->rams[RAM_TAG][i];
|
t = mmu->rams[RAM_TAG][i];
|
||||||
if (t & TLB_VALID) {
|
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]))
|
if (mmu->tids[i] && ((mmu->regs[MMU_R_PID] & 0xff) == mmu->tids[i]))
|
||||||
mmu_flush_idx(env, i);
|
mmu_flush_idx(env, i);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue