[4660] 32 bit SVM fixes - INVLPG and INVLPGA updates
Revision: 4660
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4660 Author: bellard Date: 2008-06-04 13:53:05 +0000 (Wed, 04 Jun 2008)
Log Message:
-----------
32 bit SVM fixes - INVLPG and INVLPGA updates
Modified Paths:
--------------
trunk/target-i386/exec.h
trunk/target-i386/helper.h
trunk/target-i386/op_helper.c
trunk/target-i386/translate.cModified: trunk/target-i386/exec.h
===================================================================
target-i386/exec.h +0 -1
@@ -61,7 +61,6 @@void cpu_x86_update_cr0 (CPUX86State *env,uint32_t new_cr0);void cpu_x86_update_cr3 (CPUX86State *env,target_ulong new_cr3);void cpu_x86_update_cr4 (CPUX86State *env,uint32_t new_cr4); -void cpu_x86_flush_tlb (CPUX86State *env,target_ulong addr);int cpu_x86_handle_mmu_fault (CPUX86State *env,target_ulong addr,int is_write,int mmu_idx,int is_softmmu); void tlb_fill(target_ulong addr, int is_write, int mmu_idx,
Modified: trunk/target-i386/helper.h
===================================================================
target-i386/helper.h +4 -4
@@ -102,14 +102,14 @@ DEF_HELPER(void, helper_vmexit, (uint32_t exit_code, uint64_t exit_info_1)) DEF_HELPER(void, helper_svm_check_io, (uint32_t port, uint32_t param, uint32_t next_eip_addend)) -DEF_HELPER(void, helper_vmrun, (void)) +DEF_HELPER(void, helper_vmrun, (int aflag)) DEF_HELPER(void, helper_vmmcall, (void)) -DEF_HELPER(void, helper_vmload, (void)) -DEF_HELPER(void, helper_vmsave, (void)) +DEF_HELPER(void, helper_vmload, (int aflag)) +DEF_HELPER(void, helper_vmsave, (int aflag)) DEF_HELPER(void, helper_stgi, (void)) DEF_HELPER(void, helper_clgi, (void)) DEF_HELPER(void, helper_skinit, (void)) -DEF_HELPER(void, helper_invlpga, (void)) +DEF_HELPER(void, helper_invlpga, (int aflag)) /* x86 FPU */
Modified: trunk/target-i386/op_helper.c
===================================================================
target-i386/op_helper.c +35 -16
118 lines not on this page · raw message
Modified: trunk/target-i386/translate.c
===================================================================
target-i386/translate.c +8 -4
@@ -6569,7 +6569,8 @@gen_exception (s,EXCP0D_GPF , pc_start - s->cs_base);break ; }else { -tcg_gen_helper_0_0 (helper_vmrun); +tcg_gen_helper_0_1 (helper_vmrun, +tcg_const_i32 (s->aflag)); s->cc_op =CC_OP_EFLAGS ;gen_eob (s); }
@@ -6586,7 +6587,8 @@gen_exception (s,EXCP0D_GPF , pc_start - s->cs_base);break ; }else { -tcg_gen_helper_0_0 (helper_vmload); +tcg_gen_helper_0_1 (helper_vmload, +tcg_const_i32 (s->aflag)); }break ;case 3 :/* VMSAVE */
@@ -6596,7 +6598,8 @@gen_exception (s,EXCP0D_GPF , pc_start - s->cs_base);break ; }else { -tcg_gen_helper_0_0 (helper_vmsave); +tcg_gen_helper_0_1 (helper_vmsave, +tcg_const_i32 (s->aflag)); }break ;case 4 :/* STGI */
@@ -6635,7 +6638,8 @@gen_exception (s,EXCP0D_GPF , pc_start - s->cs_base);break ; }else { -tcg_gen_helper_0_0 (helper_invlpga); +tcg_gen_helper_0_1 (helper_invlpga, +tcg_const_i32 (s->aflag)); }break ;default :