提交 e6f9e6b4 编写于 作者: A Anthony Liguori

Initialize cpuid variables

This causes a build break when !KVM.
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 2637872b
...@@ -297,7 +297,7 @@ static void host_cpuid(uint32_t function, uint32_t count, uint32_t *eax, ...@@ -297,7 +297,7 @@ static void host_cpuid(uint32_t function, uint32_t count, uint32_t *eax,
static int cpu_x86_fill_model_id(char *str) static int cpu_x86_fill_model_id(char *str)
{ {
uint32_t eax, ebx, ecx, edx; uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
int i; int i;
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册