From dc3ac92c0cd66afcfb5956f8342e2a0c65366d04 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 12 Nov 2008 13:48:01 +0200 Subject: Fix type clobbering cpuid ext2 Signed-off-by: Avi Kivity --- target-i386/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3