Message ID | 1359974470-17044-60-git-send-email-mjt@msgid.tls.msk.ru |
---|---|
State | New |
Headers | show |
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 ?