KVM: CPUID takes ecx as input value for some functions (Amit Shah)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 9 Feb 2009 15:50:08 +0000 (15:50 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 9 Feb 2009 15:50:08 +0000 (15:50 +0000)
commit327ebd323a651595b6fb22c16cdbd7167195e500
tree67eb1183fed2191124ddb3d4d229eb8c095b988d
parentc6d383c575a318e6ab40252b66e8dd558aadbfb1
KVM: CPUID takes ecx as input value for some functions (Amit Shah)

The CPUID instruction takes the value of ECX as an input parameter
in addition to the value of EAX as the count for functions 4, 0xb
and 0xd. Make sure we pass the value to the instruction.

Also convert to the qemu-style whitespace for the surrounding code.

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@6565 c046a42c-6fe2-441c-8c8c-71466251a162
target-i386/cpu.h
target-i386/helper.c
target-i386/kvm.c
target-i386/op_helper.c