From: Avi Kivity <a...@redhat.com> The addition of the ecx parameter broke cpuid on i386 as the constraints changed.
Signed-off-by: Avi Kivity <a...@redhat.com> diff --git a/qemu/target-i386/helper.c b/qemu/target-i386/helper.c index 08e26bf..6f20e9d 100644 --- a/qemu/target-i386/helper.c +++ b/qemu/target-i386/helper.c @@ -1425,10 +1425,10 @@ static void host_cpuid(uint32_t function, uint32_t count, #else asm volatile("pusha \n\t" "cpuid \n\t" - "mov %%eax, 0(%1) \n\t" - "mov %%ebx, 4(%1) \n\t" - "mov %%ecx, 8(%1) \n\t" - "mov %%edx, 12(%1) \n\t" + "mov %%eax, 0(%2) \n\t" + "mov %%ebx, 4(%2) \n\t" + "mov %%ecx, 8(%2) \n\t" + "mov %%edx, 12(%2) \n\t" "popa" : : "a"(function), "c"(count), "S"(vec) : "memory", "cc"); -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html