mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
target-i386: test reserved PS bit on PML4Es
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c1eb2fa3fd
commit
b728464ae8
1 changed files with 3 additions and 0 deletions
|
@ -580,6 +580,9 @@ int x86_cpu_handle_mmu_fault(CPUState *cs, vaddr addr,
|
|||
if (!(pml4e & PG_PRESENT_MASK)) {
|
||||
goto do_fault;
|
||||
}
|
||||
if (pml4e & PG_PSE_MASK) {
|
||||
goto do_fault_rsvd;
|
||||
}
|
||||
if (!(env->efer & MSR_EFER_NXE) && (pml4e & PG_NX_MASK)) {
|
||||
goto do_fault_rsvd;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue