[5626] Split CPUID from op_helper
Revision: 5626
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5626 Author: aliguori Date: 2008-11-05 15:34:06 +0000 (Wed, 05 Nov 2008)
Log Message:
-----------
Split CPUID from op_helper
KVM needs to call CPUID from outside of the TCG code. This patch splits out the CPUID logic into a separate helper that both the op helper and KVM can call.
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/target-i386/cpu.h
trunk/target-i386/helper.c
trunk/target-i386/op_helper.cModified: trunk/target-i386/cpu.h
===================================================================
target-i386/cpu.h +4 -0
@@ -730,6 +730,10 @@/* will be suppressed */ void cpu_x86_update_cr0 (CPUX86State *env,uint32_t new_cr0); +void cpu_x86_cpuid (CPUX86State *env,uint32_t index, +uint32_t *eax,uint32_t *ebx, +uint32_t *ecx,uint32_t *edx); +/* used to debug */ #define X86_DUMP_FPU 0x0001/* dump FPU state too */ #define X86_DUMP_CCOP 0x0002/* dump qemu flag cache */
Modified: trunk/target-i386/helper.c
===================================================================
target-i386/helper.c +166 -0
169 lines not on this page · raw message
Modified: trunk/target-i386/op_helper.c
===================================================================
target-i386/op_helper.c +6 -162
177 lines not on this page · raw message