Lines Matching refs:pde
1007 uint64_t pde, pdpe; in cpu_x86_handle_mmu_fault() local
1071 pde = ldq_phys(pde_addr); in cpu_x86_handle_mmu_fault()
1072 if (!(pde & PG_PRESENT_MASK)) { in cpu_x86_handle_mmu_fault()
1076 if (!(env->efer & MSR_EFER_NXE) && (pde & PG_NX_MASK)) { in cpu_x86_handle_mmu_fault()
1080 ptep &= pde ^ PG_NX_MASK; in cpu_x86_handle_mmu_fault()
1081 if (pde & PG_PSE_MASK) { in cpu_x86_handle_mmu_fault()
1097 is_dirty = is_write && !(pde & PG_DIRTY_MASK); in cpu_x86_handle_mmu_fault()
1098 if (!(pde & PG_ACCESSED_MASK) || is_dirty) { in cpu_x86_handle_mmu_fault()
1099 pde |= PG_ACCESSED_MASK; in cpu_x86_handle_mmu_fault()
1101 pde |= PG_DIRTY_MASK; in cpu_x86_handle_mmu_fault()
1102 stl_phys_notdirty(pde_addr, pde); in cpu_x86_handle_mmu_fault()
1105 pte = pde & ((PHYS_ADDR_MASK & ~(page_size - 1)) | 0xfff); in cpu_x86_handle_mmu_fault()
1109 if (!(pde & PG_ACCESSED_MASK)) { in cpu_x86_handle_mmu_fault()
1110 pde |= PG_ACCESSED_MASK; in cpu_x86_handle_mmu_fault()
1111 stl_phys_notdirty(pde_addr, pde); in cpu_x86_handle_mmu_fault()
1113 pte_addr = ((pde & PHYS_ADDR_MASK) + (((addr >> 12) & 0x1ff) << 3)) & in cpu_x86_handle_mmu_fault()
1151 uint32_t pde; in cpu_x86_handle_mmu_fault() local
1156 pde = ldl_phys(pde_addr); in cpu_x86_handle_mmu_fault()
1157 if (!(pde & PG_PRESENT_MASK)) { in cpu_x86_handle_mmu_fault()
1162 if ((pde & PG_PSE_MASK) && (env->cr[4] & CR4_PSE_MASK)) { in cpu_x86_handle_mmu_fault()
1165 if (!(pde & PG_USER_MASK)) in cpu_x86_handle_mmu_fault()
1167 if (is_write && !(pde & PG_RW_MASK)) in cpu_x86_handle_mmu_fault()
1171 is_write && !(pde & PG_RW_MASK)) in cpu_x86_handle_mmu_fault()
1174 is_dirty = is_write && !(pde & PG_DIRTY_MASK); in cpu_x86_handle_mmu_fault()
1175 if (!(pde & PG_ACCESSED_MASK) || is_dirty) { in cpu_x86_handle_mmu_fault()
1176 pde |= PG_ACCESSED_MASK; in cpu_x86_handle_mmu_fault()
1178 pde |= PG_DIRTY_MASK; in cpu_x86_handle_mmu_fault()
1179 stl_phys_notdirty(pde_addr, pde); in cpu_x86_handle_mmu_fault()
1182 pte = pde & ~( (page_size - 1) & ~0xfff); /* align to page_size */ in cpu_x86_handle_mmu_fault()
1186 if (!(pde & PG_ACCESSED_MASK)) { in cpu_x86_handle_mmu_fault()
1187 pde |= PG_ACCESSED_MASK; in cpu_x86_handle_mmu_fault()
1188 stl_phys_notdirty(pde_addr, pde); in cpu_x86_handle_mmu_fault()
1192 pte_addr = ((pde & ~0xfff) + ((addr >> 10) & 0xffc)) & in cpu_x86_handle_mmu_fault()
1200 ptep = pte & pde; in cpu_x86_handle_mmu_fault()
1281 uint64_t pde, pdpe; in cpu_get_phys_page_debug() local
1316 pde = ldq_phys(pde_addr); in cpu_get_phys_page_debug()
1317 if (!(pde & PG_PRESENT_MASK)) { in cpu_get_phys_page_debug()
1320 if (pde & PG_PSE_MASK) { in cpu_get_phys_page_debug()
1323 pte = pde & ~( (page_size - 1) & ~0xfff); /* align to page_size */ in cpu_get_phys_page_debug()
1326 pte_addr = ((pde & ~0xfff) + (((addr >> 12) & 0x1ff) << 3)) & in cpu_get_phys_page_debug()
1334 uint32_t pde; in cpu_get_phys_page_debug() local
1342 pde = ldl_phys(pde_addr); in cpu_get_phys_page_debug()
1343 if (!(pde & PG_PRESENT_MASK)) in cpu_get_phys_page_debug()
1345 if ((pde & PG_PSE_MASK) && (env->cr[4] & CR4_PSE_MASK)) { in cpu_get_phys_page_debug()
1346 pte = pde & ~0x003ff000; /* align to 4MB */ in cpu_get_phys_page_debug()
1350 pte_addr = ((pde & ~0xfff) + ((addr >> 10) & 0xffc)) & env->a20_mask; in cpu_get_phys_page_debug()