[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix cpuid KVM crash on i386
From: |
Lubomir Rintel |
Subject: |
[Qemu-devel] [PATCH] Fix cpuid KVM crash on i386 |
Date: |
Tue, 03 Mar 2009 14:58:18 +0100 |
Cpuid should return into vec, not overwrite past address in count.
Changeset 6565 broke this.
Signed-off-by: Lubomir Rintel <address@hidden>
Index: target-i386/helper.c
===================================================================
--- target-i386/helper.c (revision 6676)
+++ target-i386/helper.c (working copy)
@@ -1418,10 +1418,10 @@
#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");
- [Qemu-devel] [PATCH] Fix cpuid KVM crash on i386,
Lubomir Rintel <=