| Submitter | Michael Roth |
|---|---|
| Date | Jan. 16, 2013, 4:49 p.m. |
| Message ID | <1358354963-9070-12-git-send-email-mdroth@linux.vnet.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/213036/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/target-xtensa/helper.c b/target-xtensa/helper.c index d94bae2..7fa9ecc 100644 --- a/target-xtensa/helper.c +++ b/target-xtensa/helper.c @@ -486,7 +486,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 ?