aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2008-11-12 13:48:01 +0200
committerAvi Kivity <avi@redhat.com>2008-11-12 13:48:01 +0200
commitdc3ac92c0cd66afcfb5956f8342e2a0c65366d04 (patch)
treec511d9445f05082baa90272b6b356ab8a1341d14
parent508a0cdfd55923dbeed87744c8c6fd4567aa4291 (diff)
Fix type clobbering cpuid ext2kvm-79
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--target-i386/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 51f571c5f..a18dd20a2 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -1468,7 +1468,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index,
/* svm */
*ecx &= ~4UL;
/* 3dnow */
- *edx = ~0xc0000000;
+ *edx &= ~0xc0000000;
}
break;
case 0x80000002: