Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 25 of 83) sorted by relevance

1234

/qemu/target/i386/
A Dmonitor.c256 if (prot != prot1) { in mem_print()
267 if (prot != 0) in mem_print()
278 int prot, last_prot; in mem_info_32() local
308 prot = 0; in mem_info_32()
319 int prot, last_prot; in mem_info_pae32() local
363 prot = 0; in mem_info_pae32()
375 int prot, last_prot; in mem_info_la48() local
445 prot = 0; in mem_info_la48()
455 int prot, last_prot; in mem_info_la57() local
468 prot = 0; in mem_info_la57()
[all …]
/qemu/bsd-user/
A Dmmap.c89 prot1 = prot; in target_mprotect()
106 prot1 = prot; in target_mprotect()
210 prot1 = prot; in mmap_frag()
680 int prot; in mmap_reserve() local
687 prot = 0; in mmap_reserve()
702 prot = 0; in mmap_reserve()
719 int prot, ret; in target_munmap() local
738 prot = 0; in target_munmap()
748 if (prot != 0) in target_munmap()
752 prot = 0; in target_munmap()
[all …]
/qemu/target/ppc/
A Dmmu-booke.c100 *prot = PAGE_RWX; in mmu40x_get_physical_address()
108 *prot = 0; in mmu40x_get_physical_address()
116 *prot = tlb->prot; in mmu40x_get_physical_address()
175 *prot = tlb->prot & 0xF; in mmubooke_check_tlb()
177 *prot = (tlb->prot >> 4) & 0xF; in mmubooke_check_tlb()
359 *prot = 0; in mmubooke206_check_tlb()
362 *prot |= PAGE_READ; in mmubooke206_check_tlb()
368 *prot |= PAGE_EXEC; in mmubooke206_check_tlb()
372 *prot |= PAGE_READ; in mmubooke206_check_tlb()
483 int prot, ret; in ppc_booke_xlate() local
[all …]
A Dmmu-hash32.h116 int prot; in ppc_hash32_prot() local
121 prot = 0; in ppc_hash32_prot()
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()
147 return nx ? prot : prot | PAGE_EXEC; in ppc_hash32_prot()
152 int prot = 0; in ppc_hash32_bat_prot() local
156 prot = PAGE_READ | PAGE_EXEC; in ppc_hash32_bat_prot()
158 prot |= PAGE_WRITE; in ppc_hash32_bat_prot()
[all …]
A Dmmu_helper.c118 tlb->prot &= ~PAGE_VALID; in ppc4xx_tlb_invalidate_all()
693 if (tlb->prot & PAGE_VALID) { in helper_4xx_tlbre_hi()
713 if (tlb->prot & PAGE_EXEC) { in helper_4xx_tlbre_lo()
716 if (tlb->prot & PAGE_WRITE) { in helper_4xx_tlbre_lo()
726 if (tlb->prot & 0xf) { in ppcemb_tlb_flush()
772 tlb->prot |= PAGE_VALID; in helper_4xx_tlbwe_hi()
811 tlb->prot = PAGE_READ; in helper_4xx_tlbwe_lo()
813 tlb->prot |= PAGE_EXEC; in helper_4xx_tlbwe_lo()
816 tlb->prot |= PAGE_WRITE; in helper_4xx_tlbwe_lo()
891 tlb->prot = tlb->prot & PAGE_VALID; in helper_440_tlbwe()
[all …]
A Dmmu-hash32.c52 MMUAccessType access_type, int *prot, in ppc_hash32_bat_lookup() argument
82 *prot = ppc_hash32_bat_prot(batu, batl); in ppc_hash32_bat_lookup()
116 hwaddr *raddr, int *prot, int mmu_idx, in ppc_hash32_direct_store() argument
182 *prot = PAGE_READ | PAGE_WRITE; in ppc_hash32_direct_store()
184 *prot = PAGE_READ; in ppc_hash32_direct_store()
186 if (check_prot_access_type(*prot, access_type)) { in ppc_hash32_direct_store()
304 int prot; in ppc_hash32_xlate() local
387 prot = ppc_hash32_prot(key, pte.pte1 & HPTE32_R_PP, sr & SR32_NX); in ppc_hash32_xlate()
389 if (!check_prot_access_type(prot, access_type)) { in ppc_hash32_xlate()
425 prot &= ~PAGE_WRITE; in ppc_hash32_xlate()
[all …]
A Dmmu_common.c135 *prot = ppc_hash32_prot(key, tlb->pte1 & HPTE32_R_PP, nx); in ppc6xx_tlb_check()
136 if (check_prot_access_type(*prot, access_type)) { in ppc6xx_tlb_check()
148 *raddr & TARGET_PAGE_MASK, *prot, ret); in ppc6xx_tlb_check()
158 *prot &= ~PAGE_WRITE; in ppc6xx_tlb_check()
225 *prot = ppc_hash32_bat_prot(*BATu, *BATl); in get_bat_6xx_tlb()
226 if (check_prot_access_type(*prot, access_type)) { in get_bat_6xx_tlb()
229 *prot & PAGE_READ ? 'R' : '-', in get_bat_6xx_tlb()
230 *prot & PAGE_WRITE ? 'W' : '-'); in get_bat_6xx_tlb()
312 return ppc6xx_tlb_check(env, raddr, prot, eaddr, in mmu6xx_get_physical_address()
376 if (!(entry->prot & PAGE_VALID)) { in mmubooke_dump_mmu()
[all …]
A Dmmu-hash64.c406 int prot = 0; in ppc_hash64_pte_prot() local
422 prot = PAGE_READ | PAGE_EXEC; in ppc_hash64_pte_prot()
433 prot = PAGE_READ | PAGE_EXEC; in ppc_hash64_pte_prot()
442 return prot; in ppc_hash64_pte_prot()
470 return prot; in ppc_hash64_amr_prot()
484 prot &= ~PAGE_WRITE; in ppc_hash64_amr_prot()
491 prot &= ~PAGE_READ; in ppc_hash64_amr_prot()
509 return prot; in ppc_hash64_amr_prot()
1150 if (need_prot & ~prot) { in ppc_hash64_xlate()
1198 prot &= ~PAGE_WRITE; in ppc_hash64_xlate()
[all …]
A Dmmu-radix64.c234 uint64_t pte, int *fault_cause, int *prot, in ppc_radix64_check_prot() argument
252 *prot = 0; in ppc_radix64_check_prot()
255 *prot = ppc_radix64_get_prot_eaa(pte); in ppc_radix64_check_prot()
257 *prot = ppc_radix64_get_prot_eaa(pte); in ppc_radix64_check_prot()
258 *prot &= ppc_radix64_get_prot_amr(cpu); /* Least combined permissions */ in ppc_radix64_check_prot()
262 if (!check_prot_access_type(*prot, access_type)) { in ppc_radix64_check_prot()
686 int psize, prot; in ppc_radix64_xlate_impl() local
767 pate, &g_raddr, &prot, in ppc_radix64_xlate_impl()
774 *protp &= prot; in ppc_radix64_xlate_impl()
792 &prot, &psize, false, in ppc_radix64_xlate_impl()
[all …]
/qemu/target/mips/sysemu/
A Dphysaddr.c79 int *prot, target_ulong real_address, in get_seg_physical_address() argument
92 return env->tlb->map_address(env, physical, prot, real_address, in get_seg_physical_address()
97 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_seg_physical_address()
111 return get_seg_physical_address(env, physical, prot, real_address, in get_segctl_physical_address()
117 int *prot, target_ulong real_address, in get_physical_address() argument
142 ret = get_segctl_physical_address(env, physical, prot, in get_physical_address()
149 ret = env->tlb->map_address(env, physical, prot, in get_physical_address()
158 ret = env->tlb->map_address(env, physical, prot, in get_physical_address()
185 ret = get_seg_physical_address(env, physical, prot, in get_physical_address()
199 ret = env->tlb->map_address(env, physical, prot, in get_physical_address()
[all …]
/qemu/target/openrisc/
A Dmmu.c30 static inline void get_phys_nommu(hwaddr *phys_addr, int *prot, in get_phys_nommu() argument
34 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_phys_nommu()
78 *prot = right; in get_phys_mmu()
113 int prot; in openrisc_cpu_tlb_fill() local
118 get_phys_nommu(&phys_addr, &prot, addr); in openrisc_cpu_tlb_fill()
130 phys_addr & TARGET_PAGE_MASK, prot, in openrisc_cpu_tlb_fill()
145 int prot, excp, sr = cpu->env.sr; in openrisc_cpu_get_phys_page_debug() local
151 excp = get_phys_mmu(cpu, &phys_addr, &prot, addr, in openrisc_cpu_get_phys_page_debug()
157 excp = get_phys_mmu(cpu, &phys_addr, &prot, addr, in openrisc_cpu_get_phys_page_debug()
166 excp = get_phys_mmu(cpu, &phys_addr, &prot, addr, in openrisc_cpu_get_phys_page_debug()
[all …]
/qemu/target/loongarch/
A Dcpu_helper.c16 int *prot, target_ulong address, in loongarch_map_tlb_entry() argument
74 *prot = PAGE_READ; in loongarch_map_tlb_entry()
76 *prot |= PAGE_WRITE; in loongarch_map_tlb_entry()
79 *prot |= PAGE_EXEC; in loongarch_map_tlb_entry()
145 int *prot, target_ulong address, in loongarch_map_address() argument
152 return loongarch_map_tlb_entry(env, physical, prot, in loongarch_map_address()
180 int *prot, target_ulong address, in get_physical_address() argument
193 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
212 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
224 return loongarch_map_address(env, physical, prot, address, in get_physical_address()
[all …]
/qemu/hw/i386/kvm/
A Dxen_gnttab.c249 int prot; member
253 MemoryRegionSection *mrs, int prot) in gnt_unref() argument
256 if (prot & PROT_WRITE) { in gnt_unref()
282 if (prot & PROT_WRITE) { in gnt_ref()
304 if (prot & PROT_WRITE) { in gnt_ref()
365 if ((prot & PROT_WRITE) && !(act->prot & PROT_WRITE)) { in xen_be_gnttab_map_refs()
369 act->prot |= PROT_WRITE; in xen_be_gnttab_map_refs()
373 uint64_t gpa = gnt_ref(s, refs[0], prot); in xen_be_gnttab_map_refs()
380 act->prot = prot; in xen_be_gnttab_map_refs()
410 gnt_unref(s, gref, &act->mrs, act->prot); in do_unmap()
[all …]
/qemu/target/hppa/
A Dmem_helper.c231 prot = 0; in hppa_get_physical_address()
246 prot = r_prot; in hppa_get_physical_address()
249 prot = r_prot | w_prot; in hppa_get_physical_address()
258 prot = x_prot; in hppa_get_physical_address()
287 prot &= access_prot; in hppa_get_physical_address()
297 prot &= PAGE_EXEC; in hppa_get_physical_address()
333 *pprot = prot; in hppa_get_physical_address()
342 int prot, excp, mmu_idx; in hppa_cpu_get_phys_page_debug() local
432 int prot, excp, a_prot; in hppa_cpu_tlb_fill_align() local
472 out->prot = prot; in hppa_cpu_tlb_fill_align()
[all …]
/qemu/target/i386/tcg/sysemu/
A Dexcp_helper.c38 int prot; member
157 int prot; in mmu_translate() local
375 prot = 0; in mmu_translate()
377 prot |= PAGE_READ; in mmu_translate()
379 prot |= PAGE_WRITE; in mmu_translate()
385 prot |= PAGE_EXEC; in mmu_translate()
407 prot &= pkr_prot; in mmu_translate()
410 if ((prot & (1 << access_type)) == 0) { in mmu_translate()
424 prot &= ~PAGE_WRITE; in mmu_translate()
459 prot &= full->prot; in mmu_translate()
[all …]
/qemu/target/alpha/
A Dhelper.c174 int prot = 0; in get_physical_address() local
180 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
205 prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
264 prot |= PAGE_READ | PAGE_EXEC; in get_physical_address()
267 prot |= PAGE_WRITE; in get_physical_address()
274 prot &= ~(L3pte >> 1); in get_physical_address()
276 if (unlikely((prot & prot_need) == 0)) { in get_physical_address()
284 *pprot = prot; in get_physical_address()
291 int prot, fail; in alpha_cpu_get_phys_page_debug() local
303 int prot, fail; in alpha_cpu_tlb_fill() local
[all …]
/qemu/target/tricore/
A Dhelper.c36 int *prot, target_ulong address, in get_physical_address() argument
42 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
51 int prot; in tricore_cpu_get_phys_page_debug() local
54 if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, in tricore_cpu_get_phys_page_debug()
73 int prot; in tricore_cpu_tlb_fill() local
77 ret = get_physical_address(env, &physical, &prot, in tricore_cpu_tlb_fill()
82 __func__, address, ret, physical, prot); in tricore_cpu_tlb_fill()
86 physical & TARGET_PAGE_MASK, prot | PAGE_EXEC, in tricore_cpu_tlb_fill()
/qemu/target/arm/
A Dptw.c1123 result->f.prot |= result->f.prot ? PAGE_EXEC : 0; in get_phys_addr_v5()
1303 int prot = 0; in get_S2prot_noexecute() local
1306 prot |= PAGE_READ; in get_S2prot_noexecute()
1309 prot |= PAGE_WRITE; in get_S2prot_noexecute()
1311 return prot; in get_S2prot_noexecute()
1321 prot |= PAGE_EXEC; in get_S2prot()
1345 return prot; in get_S2prot()
2397 result->f.prot = 0; in get_phys_addr_pmsav7()
2627 result->f.prot = 0; in pmsav8_mpu_lookup()
3344 s1_prot = result->f.prot; in get_phys_addr_twostage()
[all …]
/qemu/linux-user/
A Dmmap.c160 static int target_to_host_prot(int prot) in target_to_host_prot() argument
341 && (prot & PROT_WRITE)) { in mmap_frag()
378 prot_old = prot; in mmap_frag()
380 prot_new = prot | prot_old; in mmap_frag()
1025 int prot; in mmap_reserve_or_unmap() local
1038 prot = 0; in mmap_reserve_or_unmap()
1040 prot |= page_get_flags(a); in mmap_reserve_or_unmap()
1045 if (prot != 0) { in mmap_reserve_or_unmap()
1052 if (prot != 0) { in mmap_reserve_or_unmap()
1059 if (prot != 0) { in mmap_reserve_or_unmap()
[all …]
/qemu/tests/tcg/multiarch/
A Dvma-pthread.c122 int prot, ret; in thread_mutate() local
133 prot = rand_r(&seed) & (PROT_READ | PROT_WRITE | PROT_EXEC); in thread_mutate()
137 prot |= PROT_READ; in thread_mutate()
141 prot |= PROT_WRITE | PROT_READ; in thread_mutate()
144 prot |= PROT_EXEC; in thread_mutate()
148 (end_idx - start_idx + 1) * ctx->pagesize, prot); in thread_mutate()
/qemu/target/sh4/
A Dhelper.c328 int *prot, target_ulong address, in get_mmu_address() argument
343 *prot = PAGE_EXEC; in get_mmu_address()
353 *prot = PAGE_READ | PAGE_EXEC; in get_mmu_address()
355 *prot |= PAGE_WRITE; in get_mmu_address()
376 *prot = PAGE_READ; in get_mmu_address()
378 *prot |= PAGE_WRITE; in get_mmu_address()
395 int *prot, target_ulong address, in get_physical_address() argument
418 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
425 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in get_physical_address()
436 int prot; in superh_cpu_get_phys_page_debug() local
[all …]
/qemu/dump/
A Ddump-hmp-cmds.c32 char *prot; in hmp_dump_guest_memory() local
78 prot = g_strconcat("file:", file, NULL); in hmp_dump_guest_memory()
80 qmp_dump_guest_memory(paging, prot, true, detach, has_begin, begin, in hmp_dump_guest_memory()
83 g_free(prot); in hmp_dump_guest_memory()
/qemu/accel/tcg/
A Duser-exec.c202 ((prot & PAGE_READ) ? 'r' : '-'), in dump_region()
659 int prot; in page_protect() local
675 prot = p->flags; in page_protect()
681 prot |= p->flags; in page_protect()
685 if (prot & PAGE_WRITE) { in page_protect()
735 int prot; in page_unprotect() local
740 prot = p->flags | PAGE_WRITE; in page_unprotect()
746 prot = 0; in page_unprotect()
753 prot |= p->flags; in page_unprotect()
768 if (prot & PAGE_EXEC) { in page_unprotect()
[all …]
/qemu/target/mips/tcg/sysemu/
A Dtlb_helper.c365 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in no_mmu_map_address()
386 *prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; in fixed_mmu_map_address()
429 *prot = PAGE_READ; in r4k_map_address()
431 *prot |= PAGE_WRITE; in r4k_map_address()
434 *prot |= PAGE_EXEC; in r4k_map_address()
641 int prot; in walk_directory() local
745 int prot; in page_table_walk_refill() local
913 int prot; in mips_cpu_tlb_fill() local
918 ret = get_physical_address(env, &physical, &prot, address, in mips_cpu_tlb_fill()
934 physical & TARGET_PAGE_MASK, prot, in mips_cpu_tlb_fill()
[all …]
/qemu/include/hw/xen/
A Dxen-legacy-backend.h49 unsigned int nr_refs, int prot);
54 uint32_t ref, int prot) in xen_be_map_grant_ref() argument
56 return xen_be_map_grant_refs(xendev, &ref, 1, prot); in xen_be_map_grant_ref()

Completed in 82 milliseconds

1234