summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/vmm/x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/vmm/x86.c b/sys/amd64/vmm/x86.c
index 94abe09..13eaaad 100644
--- a/sys/amd64/vmm/x86.c
+++ b/sys/amd64/vmm/x86.c
@@ -54,8 +54,6 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
unsigned int func, regs[4];
enum x2apic_state x2apic_state;
- func = *eax;
-
/*
* Requests for invalid CPUID levels should map to the highest
* available level instead.
@@ -70,6 +68,8 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
*eax = cpu_high;
}
+ func = *eax;
+
/*
* In general the approach used for CPU topology is to
* advertise a flat topology where all CPUs are packages with
OpenPOWER on IntegriCloud