comparison src/cpu/x86/vm/vm_version_x86.hpp @ 1789:a83b0246bb77

6934483: GCC 4.5 errors "suggest parentheses around something..." when compiling with -Werror and -Wall Summary: These are minor changes fixing compile failure when -Wall -Werror flags are used under gcc 4.5. Reviewed-by: twisti, kvn, rasbold Contributed-by: Pavel Tisnovsky <ptisnovs@redhat.com>
author twisti
date Thu, 09 Sep 2010 05:24:11 -0700
parents 079980c86f33
children ae065c367d93
comparison
equal deleted inserted replaced
1788:33a54060190d 1789:a83b0246bb77
294 uint32_t result = 0; 294 uint32_t result = 0;
295 if (_cpuid_info.std_cpuid1_edx.bits.cmpxchg8 != 0) 295 if (_cpuid_info.std_cpuid1_edx.bits.cmpxchg8 != 0)
296 result |= CPU_CX8; 296 result |= CPU_CX8;
297 if (_cpuid_info.std_cpuid1_edx.bits.cmov != 0) 297 if (_cpuid_info.std_cpuid1_edx.bits.cmov != 0)
298 result |= CPU_CMOV; 298 result |= CPU_CMOV;
299 if (_cpuid_info.std_cpuid1_edx.bits.fxsr != 0 || is_amd() && 299 if (_cpuid_info.std_cpuid1_edx.bits.fxsr != 0 || (is_amd() &&
300 _cpuid_info.ext_cpuid1_edx.bits.fxsr != 0) 300 _cpuid_info.ext_cpuid1_edx.bits.fxsr != 0))
301 result |= CPU_FXSR; 301 result |= CPU_FXSR;
302 // HT flag is set for multi-core processors also. 302 // HT flag is set for multi-core processors also.
303 if (threads_per_core() > 1) 303 if (threads_per_core() > 1)
304 result |= CPU_HT; 304 result |= CPU_HT;
305 if (_cpuid_info.std_cpuid1_edx.bits.mmx != 0 || is_amd() && 305 if (_cpuid_info.std_cpuid1_edx.bits.mmx != 0 || (is_amd() &&
306 _cpuid_info.ext_cpuid1_edx.bits.mmx != 0) 306 _cpuid_info.ext_cpuid1_edx.bits.mmx != 0))
307 result |= CPU_MMX; 307 result |= CPU_MMX;
308 if (_cpuid_info.std_cpuid1_edx.bits.sse != 0) 308 if (_cpuid_info.std_cpuid1_edx.bits.sse != 0)
309 result |= CPU_SSE; 309 result |= CPU_SSE;
310 if (_cpuid_info.std_cpuid1_edx.bits.sse2 != 0) 310 if (_cpuid_info.std_cpuid1_edx.bits.sse2 != 0)
311 result |= CPU_SSE2; 311 result |= CPU_SSE2;