Skip to content
Snippets Groups Projects
Commit 3e18c6bf authored by Edgar E. Iglesias's avatar Edgar E. Iglesias
Browse files

cris: Consider the TLB valid bit on writes to the TLB


When updating the guest TLB we only need to flush previous
mappings from the entry written if the entry was valid.

Also fixes a compiler warning reported by Blue Swirl.

Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@gmail.com>
parent 4447d609
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,9 @@ void helper_movl_sreg_reg (uint32_t sreg, uint32_t reg)
D_LOG("tlb flush vaddr=%x v=%d pc=%x\n",
vaddr, tlb_v, env->pc);
tlb_flush_page(env, vaddr);
if (tlb_v) {
tlb_flush_page(env, vaddr);
}
}
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment