From: Max Filippov Date: Sun, 27 May 2012 14:34:49 +0000 (+0400) Subject: target-xtensa: flush TLB page for new MMU mapping X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~4031 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e323bdeff28f3bd647bf02cc9df57971eff3e258;p=sdk%2Femulator%2Fqemu.git target-xtensa: flush TLB page for new MMU mapping Both old and new mappings need flushing because their VPN may be different in MMU case. Signed-off-by: Max Filippov Signed-off-by: Blue Swirl --- diff --git a/target-xtensa/op_helper.c b/target-xtensa/op_helper.c index 364dc19..ce61157 100644 --- a/target-xtensa/op_helper.c +++ b/target-xtensa/op_helper.c @@ -669,6 +669,7 @@ void xtensa_tlb_set_entry(CPUXtensaState *env, bool dtlb, entry->paddr = pte & xtensa_tlb_get_addr_mask(env, dtlb, wi); entry->asid = (env->sregs[RASID] >> ((pte >> 1) & 0x18)) & 0xff; entry->attr = pte & 0xf; + tlb_flush_page(env, entry->vaddr); } else { qemu_log("%s %d, %d, %d trying to set immutable entry\n", __func__, dtlb, wi, ei);