aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-11 21:00:43 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-11 21:00:43 +0000
commitb136a4c6ef9bff59151f3c5d8aad48b0b924da12 (patch)
tree52c87b993c8fcccfc3ca775fe831b64a2efdfdcd /target-i386
parent452b4d88e59d59dc6acd02d861f073ed430c79cf (diff)
downloadqemu-b136a4c6ef9bff59151f3c5d8aad48b0b924da12.zip
qemu-b136a4c6ef9bff59151f3c5d8aad48b0b924da12.tar.gz
qemu-b136a4c6ef9bff59151f3c5d8aad48b0b924da12.tar.bz2
KVM: cpuid function 2: store all values (Amit Shah)
Incrementing the array index was missed in the previous series which causes us to not store all the values. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6617 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/kvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 19b08d8..86745b1 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -74,6 +74,7 @@ int kvm_arch_init_vcpu(CPUState *env)
c->ebx = ebx;
c->ecx = ecx;
c->edx = edx;
+ c = &cpuid_data.entries[++cpuid_i];
}
break;
}