Commit ad8488750bc09eefc2469a6eb8b2dd2abf0940c3

Authored by balrog
1 parent a26c97ad

Correct the WBINVD intercept in SVM (Alexander Graf).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3499 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-i386/translate.c
@@ -6010,7 +6010,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) @@ -6010,7 +6010,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)
6010 if (s->cpl != 0) { 6010 if (s->cpl != 0) {
6011 gen_exception(s, EXCP0D_GPF, pc_start - s->cs_base); 6011 gen_exception(s, EXCP0D_GPF, pc_start - s->cs_base);
6012 } else { 6012 } else {
6013 - if (gen_svm_check_intercept(s, pc_start, SVM_EXIT_INVD)) 6013 + if (gen_svm_check_intercept(s, pc_start, (b & 2) ? SVM_EXIT_INVD : SVM_EXIT_WBINVD))
6014 break; 6014 break;
6015 /* nothing to do */ 6015 /* nothing to do */
6016 } 6016 }