diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-31 02:01:33 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-31 02:01:33 +0000 |
commit | ad8488750bc09eefc2469a6eb8b2dd2abf0940c3 (patch) | |
tree | b8454fe2dbecbe0848fbcb29384dac35c326c112 /target-i386 | |
parent | a26c97adce76e23ab4ad2ad152d77291ad495484 (diff) | |
download | qemu-ad8488750bc09eefc2469a6eb8b2dd2abf0940c3.tar.gz qemu-ad8488750bc09eefc2469a6eb8b2dd2abf0940c3.tar.bz2 qemu-ad8488750bc09eefc2469a6eb8b2dd2abf0940c3.zip |
Correct the WBINVD intercept in SVM (Alexander Graf).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3499 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index cd9541265a..7ab8f4b69f 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -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 */ } |