summaryrefslogtreecommitdiffstats
path: root/cpudetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpudetect.c')
-rw-r--r--cpudetect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpudetect.c b/cpudetect.c
index b88c0c3488..0983e2f96d 100644
--- a/cpudetect.c
+++ b/cpudetect.c
@@ -129,8 +129,8 @@ void GetCpuCaps( CpuCaps *caps)
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;
}