[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Make CPUID 4 work again
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH] Make CPUID 4 work again |
Date: |
Thu, 18 Dec 2008 12:13:39 +0100 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20080922) |
The recent split of the CPUID helper function broke CPUID 4, which
relies on ECX information.
This patch writes ECX into the ecx variable, which is used by
cpu_x86_cpuid to enumerate the current index.
Using this patch booting Linux with -cpu core2duo works again.
Signed-off-by: Alexander Graf <address@hidden>
Index: target-i386/op_helper.c
===================================================================
--- target-i386/op_helper.c (revision 6082)
+++ target-i386/op_helper.c (working copy)
@@ -1898,6 +1898,7 @@
helper_svm_check_intercept_param(SVM_EXIT_CPUID, 0);
+ ecx = ECX;
cpu_x86_cpuid(env, (uint32_t)EAX, &eax, &ebx, &ecx, &edx);
EAX = eax;
EBX = ebx;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Make CPUID 4 work again,
Alexander Graf <=