/openbmc/qemu/target/openrisc/ |
H A D | mmu.c | 34 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_phys_nommu() 51 if (need & PAGE_EXEC) { in get_phys_mmu() 59 match = (imr ^ addr) & TARGET_PAGE_MASK ? 0 : PAGE_EXEC; in get_phys_mmu() 63 valid = imr & 1 ? PAGE_EXEC : 0; in get_phys_mmu() 68 right = itr & (super ? SXE : UXE) ? PAGE_EXEC : 0; in get_phys_mmu() 91 return need & PAGE_EXEC ? EXCP_IPF : EXCP_DPF; in get_phys_mmu() 93 return need & PAGE_EXEC ? EXCP_ITLBMISS : EXCP_DTLBMISS; in get_phys_mmu() 122 int need = (access_type == MMU_INST_FETCH ? PAGE_EXEC in openrisc_cpu_tlb_fill() 158 PAGE_EXEC, in openrisc_cpu_get_phys_page_debug() 167 PAGE_EXEC | PAGE_READ | PAGE_WRITE, in openrisc_cpu_get_phys_page_debug()
|
/openbmc/qemu/target/xtensa/ |
H A D | mmu_helper.c | 579 access |= PAGE_EXEC; in mmu_attr_to_access() 746 [5] = PAGE_READ | PAGE_EXEC, in mpu_attr_to_access() 748 [7] = PAGE_READ | PAGE_WRITE | PAGE_EXEC, in mpu_attr_to_access() 752 [11] = PAGE_READ | PAGE_WRITE | PAGE_EXEC, in mpu_attr_to_access() 754 [13] = PAGE_READ | PAGE_EXEC, in mpu_attr_to_access() 756 [15] = PAGE_READ | PAGE_WRITE | PAGE_EXEC, in mpu_attr_to_access() 760 [9] = PAGE_READ | PAGE_WRITE | PAGE_EXEC, in mpu_attr_to_access() 762 [11] = PAGE_READ | PAGE_EXEC, in mpu_attr_to_access() 764 [13] = PAGE_READ | PAGE_EXEC, in mpu_attr_to_access() 794 return access & PAGE_EXEC; in is_access_granted() [all …]
|
/openbmc/qemu/target/sparc/ |
H A D | mmu_helper.c | 49 PAGE_READ | PAGE_EXEC, 50 PAGE_READ | PAGE_WRITE | PAGE_EXEC, 51 PAGE_EXEC, 53 PAGE_READ | PAGE_EXEC, 54 PAGE_READ | PAGE_WRITE | PAGE_EXEC 59 PAGE_READ | PAGE_EXEC, 60 PAGE_READ | PAGE_WRITE | PAGE_EXEC, 61 PAGE_EXEC, 87 full->prot = PAGE_READ | PAGE_EXEC; in get_physical_address() 91 full->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() [all …]
|
/openbmc/qemu/include/exec/ |
H A D | page-protection.h | 14 #define PAGE_EXEC 0x0004 macro 15 #define PAGE_RWX (PAGE_READ | PAGE_WRITE | PAGE_EXEC)
|
/openbmc/qemu/target/hppa/ |
H A D | mem_helper.c | 163 ? PAGE_EXEC | PAGE_READ in match_prot_id_1() 164 : PAGE_EXEC | PAGE_READ | PAGE_WRITE); in match_prot_id_1() 223 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in hppa_get_physical_address() 232 ret = (type == PAGE_EXEC) ? EXCP_ITLB_MISS : EXCP_DTLB_MISS; in hppa_get_physical_address() 277 ret = type & PAGE_EXEC ? EXCP_IMP : EXCP_DMPI; in hppa_get_physical_address() 286 ret = (type & PAGE_EXEC) ? EXCP_IMP : EXCP_DMAR; in hppa_get_physical_address() 297 prot &= PAGE_EXEC; in hppa_get_physical_address() 298 if (!(type & PAGE_EXEC)) { in hppa_get_physical_address() 303 prot &= PAGE_READ | PAGE_EXEC; in hppa_get_physical_address() 309 prot &= PAGE_READ | PAGE_EXEC; in hppa_get_physical_address() [all …]
|
/openbmc/qemu/target/s390x/ |
H A D | mmu_helper.c | 240 *flags &= ~PAGE_EXEC; in mmu_translate_asce() 270 *flags &= ~PAGE_EXEC; in mmu_translate_asce() 293 *flags &= ~PAGE_EXEC; in mmu_translate_asce() 393 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 449 if (unlikely(rw == MMU_INST_FETCH && !(*flags & PAGE_EXEC))) { in mmu_translate() 583 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate_real()
|
/openbmc/qemu/target/ppc/ |
H A D | mmu-hash64.c | 394 PAGE_READ | PAGE_WRITE : PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_noexec_guard() 417 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_prot() 422 prot = PAGE_READ | PAGE_EXEC; in ppc_hash64_pte_prot() 433 prot = PAGE_READ | PAGE_EXEC; in ppc_hash64_pte_prot() 437 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_pte_prot() 459 PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_iamr_prot() 466 int prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_amr_prot() 1065 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_xlate() 1151 if (PAGE_EXEC & ~exec_prot) { in ppc_hash64_xlate() 1153 } else if (PAGE_EXEC & ~pp_prot) { in ppc_hash64_xlate() [all …]
|
H A D | mmu-hash32.h | 147 return nx ? prot : prot | PAGE_EXEC; in ppc_hash32_prot() 156 prot = PAGE_READ | PAGE_EXEC; in ppc_hash32_bat_prot()
|
H A D | mmu-radix64.c | 219 (pte & R_PTE_EAA_X ? PAGE_EXEC : 0); in ppc_radix64_get_prot_eaa() 230 (iamr & 0x1 ? 0 : PAGE_EXEC); in ppc_radix64_get_prot_amr() 705 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_radix64_xlate_impl() 755 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_radix64_xlate_impl() 821 *protp & PAGE_EXEC ? 'x' : '-', in ppc_radix64_xlate()
|
H A D | mmu_helper.c | 713 if (tlb->prot & PAGE_EXEC) { in helper_4xx_tlbre_lo() 788 tlb->prot & PAGE_EXEC ? 'x' : '-', in helper_4xx_tlbwe_hi() 813 tlb->prot |= PAGE_EXEC; in helper_4xx_tlbwe_lo() 824 tlb->prot & PAGE_EXEC ? 'x' : '-', in helper_4xx_tlbwe_lo() 899 tlb->prot |= PAGE_EXEC << 4; in helper_440_tlbwe() 908 tlb->prot |= PAGE_EXEC; in helper_440_tlbwe() 953 if (tlb->prot & (PAGE_EXEC << 4)) { in helper_440_tlbre() 962 if (tlb->prot & PAGE_EXEC) { in helper_440_tlbre()
|
H A D | mmu-booke.c | 368 *prot |= PAGE_EXEC; in mmubooke206_check_tlb() 378 *prot |= PAGE_EXEC; in mmubooke206_check_tlb()
|
/openbmc/qemu/target/alpha/ |
H A D | helper.c | 180 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 205 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 258 #if PAGE_READ != 1 || PAGE_WRITE != 2 || PAGE_EXEC != 4 in get_physical_address() 264 prot |= PAGE_READ | PAGE_EXEC; in get_physical_address() 277 ret = (prot_need & PAGE_EXEC ? MM_K_FOE : in get_physical_address()
|
/openbmc/qemu/target/loongarch/ |
H A D | cpu_helper.c | 79 *prot |= PAGE_EXEC; in loongarch_map_tlb_entry() 193 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 212 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
|
/openbmc/qemu/target/arm/ |
H A D | ptw.c | 1254 result->f.prot |= PAGE_EXEC; in get_phys_addr_v6() 1313 prot |= PAGE_EXEC; in get_S2prot() 1317 prot |= PAGE_EXEC; in get_S2prot() 1324 prot |= PAGE_EXEC; in get_S2prot() 1333 prot |= PAGE_EXEC; in get_S2prot() 1461 return prot_rw | PAGE_EXEC; in get_S1prot() 2278 result->f.prot |= PAGE_EXEC; in get_phys_addr_pmsav5() 2291 *prot |= PAGE_EXEC; in get_phys_addr_pmsav7_default() 2295 *prot |= PAGE_EXEC; in get_phys_addr_pmsav7_default() 2545 result->f.prot &= ~PAGE_EXEC; in get_phys_addr_pmsav7() [all …]
|
/openbmc/qemu/accel/tcg/ |
H A D | user-exec.c | 204 ((prot & PAGE_EXEC) ? 'x' : '-')); in dump_region() 264 if (p->flags & PAGE_EXEC) { in pageflags_unset() 376 if ((p_flags & PAGE_EXEC) in pageflags_set_clear() 377 && (!(merge_flags & PAGE_EXEC) in pageflags_set_clear() 693 prot & (PAGE_READ | PAGE_EXEC) ? PROT_READ : PROT_NONE); in page_protect() 773 if (prot & PAGE_EXEC) { in page_unprotect() 774 prot = (prot & ~PAGE_EXEC) | PAGE_READ; in page_unprotect() 799 acc_flag = PAGE_EXEC; in probe_access_internal()
|
/openbmc/linux/arch/hexagon/include/asm/ |
H A D | pgtable.h | 114 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ macro 116 #define PAGE_COPY_EXEC PAGE_EXEC
|
/openbmc/qemu/target/tricore/ |
H A D | helper.c | 42 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 86 physical & TARGET_PAGE_MASK, prot | PAGE_EXEC, in tricore_cpu_tlb_fill()
|
/openbmc/qemu/target/i386/tcg/sysemu/ |
H A D | excp_helper.c | 358 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 385 prot |= PAGE_EXEC; in mmu_translate() 397 uint32_t pkr_prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 604 out->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc440_bamboo.c | 121 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping() 129 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
|
H A D | virtex_ml507.c | 78 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping() 86 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
|
H A D | sam460ex.c | 226 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping_uboot() 241 tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); in mmubooke_create_initial_mapping()
|
/openbmc/qemu/target/sh4/ |
H A D | helper.c | 343 *prot = PAGE_EXEC; in get_mmu_address() 353 *prot = PAGE_READ | PAGE_EXEC; in get_mmu_address() 418 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 425 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
|
/openbmc/qemu/target/mips/sysemu/ |
H A D | physaddr.c | 97 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_seg_physical_address()
|
/openbmc/qemu/target/rx/ |
H A D | cpu.c | 165 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in rx_cpu_tlb_fill()
|
/openbmc/qemu/target/avr/ |
H A D | helper.c | 119 prot = PAGE_READ | PAGE_EXEC; in avr_cpu_tlb_fill()
|