/openbmc/qemu/target/xtensa/ |
H A D | mmu_helper.c | 582 access |= PAGE_WRITE; in mmu_attr_to_access() 599 access |= PAGE_READ | PAGE_WRITE | PAGE_CACHE_ISOLATE; in mmu_attr_to_access() 611 [0] = PAGE_READ | PAGE_WRITE | PAGE_CACHE_WT, in region_attr_to_access() 612 [1] = PAGE_READ | PAGE_WRITE | PAGE_EXEC | PAGE_CACHE_WT, in region_attr_to_access() 613 [2] = PAGE_READ | PAGE_WRITE | PAGE_EXEC | PAGE_CACHE_BYPASS, in region_attr_to_access() 615 [4] = PAGE_READ | PAGE_WRITE | PAGE_EXEC | PAGE_CACHE_WB, in region_attr_to_access() 616 [5] = PAGE_READ | PAGE_WRITE | PAGE_EXEC | PAGE_CACHE_WB, in region_attr_to_access() 617 [14] = PAGE_READ | PAGE_WRITE | PAGE_CACHE_ISOLATE, in region_attr_to_access() 630 [0] = PAGE_READ | PAGE_WRITE | PAGE_CACHE_WT, in cacheattr_attr_to_access() 631 [1] = PAGE_READ | PAGE_WRITE | PAGE_EXEC | PAGE_CACHE_WT, in cacheattr_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() 70 right |= dtr & (super ? SWE : UWE) ? PAGE_WRITE : 0; in get_phys_mmu() 123 : access_type == MMU_DATA_STORE ? PAGE_WRITE in openrisc_cpu_tlb_fill() 167 PAGE_EXEC | PAGE_READ | PAGE_WRITE, in openrisc_cpu_get_phys_page_debug()
|
/openbmc/qemu/target/s390x/ |
H A D | mmu_helper.c | 199 *flags &= ~PAGE_WRITE; in mmu_translate_asce() 218 *flags &= ~PAGE_WRITE; in mmu_translate_asce() 236 *flags &= ~PAGE_WRITE; in mmu_translate_asce() 266 *flags &= ~PAGE_WRITE; in mmu_translate_asce() 290 *flags &= ~PAGE_WRITE; in mmu_translate_asce() 356 *flags &= ~PAGE_WRITE; in mmu_handle_skey() 393 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 442 if (unlikely(rw == MMU_DATA_STORE && !(*flags & PAGE_WRITE))) { in mmu_translate() 583 *flags = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate_real()
|
/openbmc/qemu/include/exec/ |
H A D | page-protection.h | 13 #define PAGE_WRITE 0x0002 macro 15 #define PAGE_RWX (PAGE_READ | PAGE_WRITE | PAGE_EXEC)
|
/openbmc/qemu/target/sparc/ |
H A D | mmu_helper.c | 48 PAGE_READ | PAGE_WRITE, 50 PAGE_READ | PAGE_WRITE | PAGE_EXEC, 52 PAGE_READ | PAGE_WRITE, 54 PAGE_READ | PAGE_WRITE | PAGE_EXEC 58 PAGE_READ | PAGE_WRITE, 60 PAGE_READ | PAGE_WRITE | PAGE_EXEC, 91 full->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 196 full->prot &= ~PAGE_WRITE; in get_physical_address() 247 full.prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in sparc_cpu_tlb_fill() 617 full->prot |= PAGE_WRITE; in get_physical_address_data() [all …]
|
/openbmc/linux/arch/csky/mm/ |
H A D | init.c | 212 [VM_SHARED | VM_WRITE] = PAGE_WRITE, 213 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_WRITE, 216 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_WRITE, 217 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_WRITE
|
/openbmc/qemu/target/ppc/ |
H A D | mmu-hash32.h | 128 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot() 138 prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_prot() 158 prot |= PAGE_WRITE; 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() 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() 484 prot &= ~PAGE_WRITE; in ppc_hash64_amr_prot() 1067 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_xlate() 1143 amr_prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash64_xlate() 1198 prot &= ~PAGE_WRITE; in ppc_hash64_xlate()
|
H A D | mmu-radix64.c | 218 (pte & R_PTE_EAA_RW ? PAGE_READ | PAGE_WRITE : 0) | in ppc_radix64_get_prot_eaa() 228 return (amr & 0x2 ? 0 : PAGE_WRITE) | /* Access denied if bit is set */ 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() 820 *protp & PAGE_WRITE ? 'w' : '-', in ppc_radix64_xlate()
|
H A D | mmu_helper.c | 716 if (tlb->prot & PAGE_WRITE) { in helper_4xx_tlbre_lo() 787 tlb->prot & PAGE_WRITE ? 'w' : '-', in helper_4xx_tlbwe_hi() 816 tlb->prot |= PAGE_WRITE; in helper_4xx_tlbwe_lo() 823 tlb->prot & PAGE_WRITE ? 'w' : '-', in helper_4xx_tlbwe_lo() 896 tlb->prot |= PAGE_WRITE << 4; in helper_440_tlbwe() 905 tlb->prot |= PAGE_WRITE; in helper_440_tlbwe() 950 if (tlb->prot & (PAGE_WRITE << 4)) { in helper_440_tlbre() 959 if (tlb->prot & PAGE_WRITE) { in helper_440_tlbre()
|
H A D | mmu-hash32.c | 182 *prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_direct_store() 313 *protp = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in ppc_hash32_xlate() 425 prot &= ~PAGE_WRITE; in ppc_hash32_xlate()
|
H A D | mmu-booke.c | 365 *prot |= PAGE_WRITE; in mmubooke206_check_tlb() 375 *prot |= PAGE_WRITE; in mmubooke206_check_tlb()
|
/openbmc/qemu/target/i386/tcg/sysemu/ |
H A D | excp_helper.c | 358 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in mmu_translate() 379 prot |= PAGE_WRITE; 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() 402 pkr_prot &= ~PAGE_WRITE; in mmu_translate() 424 prot &= ~PAGE_WRITE; in mmu_translate() 604 out->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
|
/openbmc/qemu/accel/tcg/ |
H A D | user-exec.c | 203 ((prot & PAGE_WRITE) ? 'w' : '-'), in dump_region() 378 || (merge_flags & ~p_flags & PAGE_WRITE))) { in pageflags_set_clear() 510 if (flags & PAGE_WRITE) { in page_set_flags() 569 if (missing & ~PAGE_WRITE) { in page_check_range() 573 if (missing & PAGE_WRITE) { in page_check_range() 685 if (prot & PAGE_WRITE) { in page_protect() 686 pageflags_set_clear(start, last, 0, PAGE_WRITE); in page_protect() 720 if (p->flags & PAGE_WRITE) { in page_unprotect() 740 prot = p->flags | PAGE_WRITE; in page_unprotect() 741 pageflags_set_clear(start, start + len - 1, PAGE_WRITE, 0); in page_unprotect() [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() 267 prot |= PAGE_WRITE; in get_physical_address() 278 prot_need & PAGE_WRITE ? MM_K_FOW : in get_physical_address()
|
/openbmc/qemu/target/arm/ |
H A D | ptw.c | 612 ptw->out_rw = full->prot & PAGE_WRITE; in S1_ptw_translate() 931 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user() 948 return is_user ? 0 : PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user() 953 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user() 956 return PAGE_READ | PAGE_WRITE; in ap_to_rw_prot_is_user() 996 return is_user ? 0 : PAGE_READ | PAGE_WRITE; in simple_ap_to_rw_prot_is_user() 998 return PAGE_READ | PAGE_WRITE; in simple_ap_to_rw_prot_is_user() 1257 result->f.prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_phys_addr_v6() 1309 prot |= PAGE_WRITE; in get_S2prot_noexecute() 1439 xn = pxn || (user_rw & PAGE_WRITE); in get_S1prot() [all …]
|
/openbmc/qemu/target/loongarch/ |
H A D | cpu_helper.c | 76 *prot |= PAGE_WRITE; 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/hppa/ |
H A D | mem_helper.c | 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() 242 w_prot = (priv <= ent->ar_pl2) * PAGE_WRITE; in hppa_get_physical_address() 305 if (type & PAGE_WRITE) { in hppa_get_physical_address() 312 if (type & PAGE_WRITE) { in hppa_get_physical_address() 440 a_prot = PAGE_WRITE; in hppa_cpu_tlb_fill_align()
|
/openbmc/linux/arch/csky/include/asm/ |
H A D | pgtable.h | 58 #define PAGE_WRITE __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_WRITE | \ macro 60 #define PAGE_SHARED PAGE_WRITE
|
/openbmc/qemu/target/sh4/ |
H A D | helper.c | 355 *prot |= PAGE_WRITE; in get_mmu_address() 378 *prot |= PAGE_WRITE; 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/m68k/ |
H A D | helper.c | 721 *prot |= PAGE_WRITE; in check_TTR() 755 *prot = PAGE_READ | PAGE_WRITE; in get_physical_address() 786 *prot &= ~PAGE_WRITE; in get_physical_address() 813 *prot &= ~PAGE_WRITE; in get_physical_address() 885 *prot &= ~PAGE_WRITE; in get_physical_address() 968 PAGE_READ | PAGE_WRITE | PAGE_EXEC, in m68k_cpu_tlb_fill()
|
/openbmc/qemu/target/riscv/ |
H A D | cpu_helper.c | 844 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address_pmp() 917 *ret_prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 967 *ret_prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address() 1147 prot |= PAGE_WRITE; in get_physical_address() 1185 prot &= PAGE_READ | PAGE_WRITE; in get_physical_address() 1281 prot &= ~PAGE_WRITE; 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/tricore/ |
H A D | helper.c | 42 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
|