Searched refs:need_prot (Results 1 – 2 of 2) sorted by relevance
756 int have_prot, need_prot; in tcg_region_init() local818 need_prot = PROT_READ | PROT_WRITE; in tcg_region_init()821 need_prot |= host_prot_read_exec(); in tcg_region_init()828 if (have_prot != need_prot) { in tcg_region_init()831 if (need_prot == (PROT_READ | PROT_WRITE | PROT_EXEC)) { in tcg_region_init()833 } else if (need_prot == (PROT_READ | PROT_WRITE)) { in tcg_region_init()837 rc = mprotect(start, end - start, need_prot); in tcg_region_init()
994 int need_prot; in ppc_hash64_xlate() local1149 need_prot = check_prot_access_type(PAGE_RWX, access_type); in ppc_hash64_xlate()1150 if (need_prot & ~prot) { in ppc_hash64_xlate()1169 if (need_prot & ~pp_prot) { in ppc_hash64_xlate()1175 if (need_prot & ~amr_prot) { in ppc_hash64_xlate()