/openbmc/linux/arch/csky/mm/ |
H A D | init.c | 203 [VM_READ] = PAGE_READ, 204 [VM_WRITE] = PAGE_READ, 205 [VM_WRITE | VM_READ] = PAGE_READ, 206 [VM_EXEC] = PAGE_READ, 207 [VM_EXEC | VM_READ] = PAGE_READ, 208 [VM_EXEC | VM_WRITE] = PAGE_READ, 209 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_READ, 211 [VM_SHARED | VM_READ] = PAGE_READ, 214 [VM_SHARED | VM_EXEC] = PAGE_READ, 215 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READ,
|
/openbmc/qemu/target/xtensa/ |
H A D | mmu_helper.c | 577 access |= PAGE_READ; in mmu_attr_to_access() 745 [4] = PAGE_READ, in mpu_attr_to_access() 747 [6] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access() 750 [9] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access() 751 [10] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access() 753 [12] = PAGE_READ, in mpu_attr_to_access() 755 [14] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access() 761 [10] = PAGE_READ, in mpu_attr_to_access() 763 [12] = PAGE_READ, in mpu_attr_to_access() 765 [14] = PAGE_READ | PAGE_WRITE, in mpu_attr_to_access() [all …]
|
H A D | op_helper.c | 92 (access & (PAGE_READ | PAGE_WRITE)) != (PAGE_READ | PAGE_WRITE)) { in HELPER()
|
/openbmc/qemu/target/openrisc/ |
H A D | mmu.c | 34 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_phys_nommu() 60 match |= (dmr ^ addr) & TARGET_PAGE_MASK ? 0 : PAGE_READ | PAGE_WRITE; in get_phys_mmu() 64 valid |= dmr & 1 ? PAGE_READ | PAGE_WRITE : 0; in get_phys_mmu() 69 right |= dtr & (super ? SRE : URE) ? PAGE_READ : 0; in get_phys_mmu() 124 : PAGE_READ); in openrisc_cpu_tlb_fill() 152 PAGE_READ, in openrisc_cpu_get_phys_page_debug() 167 PAGE_EXEC | PAGE_READ | PAGE_WRITE, in openrisc_cpu_get_phys_page_debug()
|
/openbmc/qemu/target/ppc/ |
H A D | mmu-hash32.h | 125 prot = PAGE_READ; in ppc_hash32_prot() 128 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot() 138 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot() 141 prot = PAGE_READ; in ppc_hash32_prot() 156 prot = PAGE_READ | PAGE_EXEC; in ppc_hash32_bat_prot()
|
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() 458 return (iamr_bits & 0x1) ? PAGE_READ | PAGE_WRITE : in ppc_hash64_iamr_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() 491 prot &= ~PAGE_READ; in ppc_hash64_amr_prot() 1065 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_xlate()
|
H A D | mmu-radix64.c | 217 return (pte & R_PTE_EAA_R ? PAGE_READ : 0) | in ppc_radix64_get_prot_eaa() 218 (pte & R_PTE_EAA_RW ? PAGE_READ | PAGE_WRITE : 0) | in ppc_radix64_get_prot_eaa() 229 (amr & 0x1 ? 0 : PAGE_READ) | 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() 819 *protp & PAGE_READ ? 'r' : '-', in ppc_radix64_xlate()
|
H A D | mmu-hash32.c | 182 *prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_direct_store() 184 *prot = PAGE_READ; in ppc_hash32_direct_store() 313 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash32_xlate()
|
H A D | mmu_helper.c | 786 tlb->prot & PAGE_READ ? 'r' : '-', in helper_4xx_tlbwe_hi() 811 tlb->prot = PAGE_READ; in helper_4xx_tlbwe_lo() 822 tlb->prot & PAGE_READ ? 'r' : '-', in helper_4xx_tlbwe_lo() 893 tlb->prot |= PAGE_READ << 4; in helper_440_tlbwe() 902 tlb->prot |= PAGE_READ; in helper_440_tlbwe() 947 if (tlb->prot & (PAGE_READ << 4)) { in helper_440_tlbre() 956 if (tlb->prot & PAGE_READ) { in helper_440_tlbre()
|
/openbmc/qemu/target/sparc/ |
H A D | mmu_helper.c | 47 PAGE_READ, 48 PAGE_READ | PAGE_WRITE, 49 PAGE_READ | PAGE_EXEC, 50 PAGE_READ | PAGE_WRITE | PAGE_EXEC, 52 PAGE_READ | PAGE_WRITE, 53 PAGE_READ | PAGE_EXEC, 54 PAGE_READ | PAGE_WRITE | PAGE_EXEC 57 PAGE_READ, 58 PAGE_READ | PAGE_WRITE, 59 PAGE_READ | PAGE_EXEC, [all …]
|
/openbmc/qemu/include/exec/ |
H A D | page-protection.h | 12 #define PAGE_READ 0x0001 macro 15 #define PAGE_RWX (PAGE_READ | PAGE_WRITE | PAGE_EXEC)
|
/openbmc/qemu/target/arm/ |
H A D | ptw.c | 912 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user() 924 return PAGE_READ; in ap_to_rw_prot_is_user() 932 return PAGE_READ; in ap_to_rw_prot_is_user() 937 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user() 943 return PAGE_READ; in ap_to_rw_prot_is_user() 948 return PAGE_READ; in ap_to_rw_prot_is_user() 983 return PAGE_READ; in simple_ap_to_rw_prot_is_user() 1298 prot |= PAGE_READ; in get_S2prot_noexecute() 2253 result->f.prot = PAGE_READ; in get_phys_addr_pmsav5() 2267 result->f.prot = PAGE_READ; in get_phys_addr_pmsav5() [all …]
|
/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() 279 prot_need & PAGE_READ ? MM_K_FOR : -1); in get_physical_address()
|
/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() 241 r_prot = (priv <= ent->ar_pl1) * PAGE_READ; 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() 437 a_prot = PAGE_READ; in hppa_cpu_tlb_fill()
|
/openbmc/qemu/target/loongarch/ |
H A D | cpu_helper.c | 74 *prot = PAGE_READ; 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/i386/tcg/sysemu/ |
H A D | excp_helper.c | 358 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 377 prot |= PAGE_READ; in mmu_translate() 397 uint32_t pkr_prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 400 pkr_prot &= ~(PAGE_READ | PAGE_WRITE); in mmu_translate() 604 out->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
|
/openbmc/qemu/target/avr/ |
H A D | helper.c | 119 prot = PAGE_READ | PAGE_EXEC; in avr_cpu_tlb_fill() 135 prot = PAGE_READ | PAGE_WRITE; in avr_cpu_tlb_fill()
|
/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 | 353 *prot = PAGE_READ | PAGE_EXEC; in get_mmu_address() 376 *prot = PAGE_READ; 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/linux-user/ |
H A D | qemu.h | 172 #define VERIFY_READ PAGE_READ 173 #define VERIFY_WRITE (PAGE_READ | PAGE_WRITE)
|
/openbmc/qemu/target/s390x/ |
H A D | mmu_helper.c | 393 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 583 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate_real()
|
/openbmc/qemu/bsd-user/ |
H A D | qemu.h | 280 #define VERIFY_READ PAGE_READ 281 #define VERIFY_WRITE (PAGE_READ | PAGE_WRITE)
|
/openbmc/qemu/accel/tcg/ |
H A D | user-exec.c | 202 ((prot & PAGE_READ) ? 'r' : '-'), in dump_region() 693 prot & (PAGE_READ | PAGE_EXEC) ? PROT_READ : PROT_NONE); in page_protect() 774 prot = (prot & ~PAGE_EXEC) | PAGE_READ; in page_unprotect() 796 acc_flag = PAGE_READ; in probe_access_internal()
|