[5718] x86: fix warning without CONFIG_KVM (Mark McLoughlin)
Revision: 5718
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5718 Author: aliguori Date: 2008-11-13 19:37:46 +0000 (Thu, 13 Nov 2008)
Log Message:
-----------
x86: fix warning without CONFIG_KVM (Mark McLoughlin)
Warning is:
target-i386/helper.c: In function `cpu_x86_cpuid':
target-i386/helper.c:1373: warning: implicit declaration of function `host_cpuid'
Signed-off-by Mark McLoughlin <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/target-i386/helper.c
Modified: trunk/target-i386/helper.c
===================================================================
target-i386/helper.c +2 -2
@@ -1296,10 +1296,10 @@ }#endif /* !CONFIG_USER_ONLY */ -#if defined(CONFIG_KVM )static void host_cpuid (uint32_t function,uint32_t *eax,uint32_t *ebx,uint32_t *ecx,uint32_t *edx) { +#if defined(CONFIG_KVM )uint32_t vec[4 ];#ifdef __x86_64__
@@ -1327,8 +1327,8 @@ *ecx = vec[2 ];if (edx) *edx = vec[3 ]; +#endif } -#endif void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t *eax, uint32_t *ebx,