diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-09 15:50:08 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-09 15:50:08 +0000 |
commit | 327ebd323a651595b6fb22c16cdbd7167195e500 (patch) | |
tree | 67eb1183fed2191124ddb3d4d229eb8c095b988d /target-i386/op_helper.c | |
parent | c6d383c575a318e6ab40252b66e8dd558aadbfb1 (diff) | |
download | qemu-327ebd323a651595b6fb22c16cdbd7167195e500.tar.gz qemu-327ebd323a651595b6fb22c16cdbd7167195e500.tar.bz2 qemu-327ebd323a651595b6fb22c16cdbd7167195e500.zip |
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
Diffstat (limited to 'target-i386/op_helper.c')
-rw-r--r-- | target-i386/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index 87c7a579e9..217916a05c 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -1913,7 +1913,7 @@ void helper_cpuid(void) helper_svm_check_intercept_param(SVM_EXIT_CPUID, 0); - cpu_x86_cpuid(env, (uint32_t)EAX, &eax, &ebx, &ecx, &edx); + cpu_x86_cpuid(env, (uint32_t)EAX, (uint32_t)ECX, &eax, &ebx, &ecx, &edx); EAX = eax; EBX = ebx; ECX = ecx; |