From b956edc292715daca03a9af8651da4755438e07f Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 18 Feb 2009 14:49:20 +0000 Subject: [PATCH] Fix host_cpuid() on i386 The addition of the ecx parameter broke cpuid on i386 as the constraints changed. Signed-off-by: Avi Kivity --- target-i386/helper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 08e26bffc8..6f20e9d114 100644 --- a/target-i386/helper.c +++ b/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"); -- 2.11.4.GIT