Correct the WBINVD intercept in SVM (Alexander Graf).
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 31 Oct 2007 02:01:33 +0000 (02:01 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 31 Oct 2007 02:01:33 +0000 (02:01 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3499 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/translate.c

index cd9541265ac91668f8e841acb334777c2414dfdc..7ab8f4b69ff0d553503d19b7de51086a7e2ae9dc 100644 (file)
@@ -6010,7 +6010,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)
         if (s->cpl != 0) {
             gen_exception(s, EXCP0D_GPF, pc_start - s->cs_base);
         } else {
-            if (gen_svm_check_intercept(s, pc_start, SVM_EXIT_INVD))
+            if (gen_svm_check_intercept(s, pc_start, (b & 2) ? SVM_EXIT_INVD : SVM_EXIT_WBINVD))
                 break;
             /* nothing to do */
         }