summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-14 15:35:58 +0000
committerattilio <attilio@FreeBSD.org>2013-02-14 15:35:58 +0000
commit8dfc0ddbd33b346cefd47e11711579b57c7eae85 (patch)
treed4f8ac86fbe0096edb9909d61f9461520907f27d /sys/amd64
parente403650531652add76cee5a4c90e0b856b582026 (diff)
parentdafec87d6530b11c5bda97895b6008e28d4686f2 (diff)
downloadFreeBSD-src-8dfc0ddbd33b346cefd47e11711579b57c7eae85.zip
FreeBSD-src-8dfc0ddbd33b346cefd47e11711579b57c7eae85.tar.gz
MFC
Diffstat (limited to 'sys/amd64')
-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