Lines Matching defs:pte
978 uint64_t ptep, pte;
993 pte = addr;
1099 pte = pde & ((PHYS_ADDR_MASK & ~(page_size - 1)) | 0xfff);
1109 pte = ldq_phys(pte_addr);
1110 if (!(pte & PG_PRESENT_MASK)) {
1114 if (!(env->efer & MSR_EFER_NXE) && (pte & PG_NX_MASK)) {
1118 /* combine pde and pte nx, user and rw protections */
1119 ptep &= pte ^ PG_NX_MASK;
1133 is_dirty = is_write && !(pte & PG_DIRTY_MASK);
1134 if (!(pte & PG_ACCESSED_MASK) || is_dirty) {
1135 pte |= PG_ACCESSED_MASK;
1137 pte |= PG_DIRTY_MASK;
1138 stl_phys_notdirty(pte_addr, pte);
1142 pte = pte & (PHYS_ADDR_MASK | 0xfff);
1176 pte = pde & ~( (page_size - 1) & ~0xfff); /* align to page_size */
1177 ptep = pte;
1188 pte = ldl_phys(pte_addr);
1189 if (!(pte & PG_PRESENT_MASK)) {
1193 /* combine pde and pte user and rw protections */
1194 ptep = pte & pde;
1205 is_dirty = is_write && !(pte & PG_DIRTY_MASK);
1206 if (!(pte & PG_ACCESSED_MASK) || is_dirty) {
1207 pte |= PG_ACCESSED_MASK;
1209 pte |= PG_DIRTY_MASK;
1210 stl_phys_notdirty(pte_addr, pte);
1220 if (pte & PG_DIRTY_MASK) {
1233 pte = pte & env->a20_mask;
1238 paddr = (pte & TARGET_PAGE_MASK) + page_offset;
1268 uint64_t pte;
1317 pte = pde & ~( (page_size - 1) & ~0xfff); /* align to page_size */
1323 pte = ldq_phys(pte_addr);
1325 if (!(pte & PG_PRESENT_MASK))
1331 pte = addr;
1340 pte = pde & ~0x003ff000; /* align to 4MB */
1345 pte = ldl_phys(pte_addr);
1346 if (!(pte & PG_PRESENT_MASK))
1351 pte = pte & env->a20_mask;
1355 paddr = (pte & TARGET_PAGE_MASK) + page_offset;