changeset 3840:4ff660150386

Intel P4 support
author arpi
date Fri, 28 Dec 2001 18:23:35 +0000
parents b608086bf84e
children 25600d0bdc63
files cpudetect.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cpudetect.c	Fri Dec 28 18:15:50 2001 +0000
+++ b/cpudetect.c	Fri Dec 28 18:23:35 2001 +0000
@@ -129,8 +129,8 @@
 	if (regs[0]>=0x80000001) {
 		printf("extended cpuid-level: %d\n",regs[0]&0x7FFFFFFF);
 		do_cpuid(0x80000001, regs2);
-		caps->hasMMX  = (regs2[3] & (1 << 23 )) >> 23; // 0x0800000
-		caps->hasMMX2 = (regs2[3] & (1 << 22 )) >> 22; // 0x400000
+		caps->hasMMX  |= (regs2[3] & (1 << 23 )) >> 23; // 0x0800000
+		caps->hasMMX2 |= (regs2[3] & (1 << 22 )) >> 22; // 0x400000
 		caps->has3DNow    = (regs2[3] & (1 << 31 )) >> 31; //0x80000000
 		caps->has3DNowExt = (regs2[3] & (1 << 30 )) >> 30;
 	}