Fix CPUID ext2 features masking (Avi Kivity)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Nov 2008 19:28:04 +0000 (19:28 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Nov 2008 19:28:04 +0000 (19:28 +0000)
Typo. Exposes rdtscp which kills some guests.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5717 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/helper.c

index 7ddb4cec13ff7deed3d8fde1b4aba62921ec8570..fd26e3e54205d246aa4266a6ffc3879ea32e9fdb 100644 (file)
@@ -1466,7 +1466,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index,
             /* svm */
             *ecx &= ~4UL;
             /* 3dnow */
-            *edx = ~0xc0000000;
+            *edx &= ~0xc0000000;
         }
         break;
     case 0x80000002: