| Submitter | Michael Tokarev |
|---|---|
| Date | Feb. 4, 2013, 10:41 a.m. |
| Message ID | <1359974470-17044-60-git-send-email-mjt@msgid.tls.msk.ru> |
| Download | mbox | patch |
| Permalink | /patch/217864/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/target-xtensa/helper.c b/target-xtensa/helper.c index 8ebef72..c9d6f38 100644 --- a/target-xtensa/helper.c +++ b/target-xtensa/helper.c @@ -497,7 +497,8 @@ static int get_physical_addr_mmu(CPUXtensaState *env, bool update_tlb, INST_FETCH_PRIVILEGE_CAUSE; } - *access = mmu_attr_to_access(entry->attr); + *access = mmu_attr_to_access(entry->attr) & + ~(dtlb ? PAGE_EXEC : PAGE_READ | PAGE_WRITE); if (!is_access_granted(*access, is_write)) { return dtlb ? (is_write ?