1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00

fix wrong initialization of EFER

This commit is contained in:
Stefan Lankes 2018-05-17 14:23:17 +02:00
parent 907a40b74a
commit 020339c32a

View file

@ -343,7 +343,8 @@ static void filter_cpuid(struct kvm_cpuid2 *kvm_cpuid)
static void setup_system_64bit(struct kvm_sregs *sregs)
{
sregs->cr0 |= X86_CR0_PE;
sregs->efer |= EFER_LME;
sregs->cr4 |= X86_CR4_PAE;
sregs->efer |= EFER_LME|EFER_LMA;
}
static void setup_system_page_tables(struct kvm_sregs *sregs, uint8_t *mem)