diff --git a/tools/ioemu/hw/vga.c b/tools/ioemu/hw/vga.c index 3120ebac5d..11daaa27a2 100644 --- a/tools/ioemu/hw/vga.c +++ b/tools/ioemu/hw/vga.c @@ -1369,10 +1369,10 @@ static inline unsigned int cpuid_edx(unsigned int op) { unsigned int eax, edx; - __asm__("cpuid" + __asm__("pushl %%ebx; cpuid; popl %%ebx" : "=a" (eax), "=d" (edx) : "0" (op) - : "bx", "cx"); + : "cx"); return edx; }