Report SSSE3 instead of SSE4 (to be released later).

This commit is contained in:
gbeauche 2007-01-15 07:00:16 +00:00
parent 3c100abdb2
commit e4af8a1909
3 changed files with 9 additions and 9 deletions

View File

@ -44,8 +44,8 @@ powerpc_dyngen::powerpc_dyngen(dyngen_cpu_base cpu, int cache_size)
printf(" SSE2");
if (cpuinfo_check_sse3())
printf(" SSE3");
if (cpuinfo_check_sse4())
printf(" SSE4");
if (cpuinfo_check_ssse3())
printf(" SSSE3");
if (cpuinfo_check_altivec())
printf(" VMX");
printf("\n");

View File

@ -32,8 +32,8 @@ enum {
HWCAP_I386_SSE2 = 1 << 26,
HWCAP_I386_EDX_FLAGS = (HWCAP_I386_CMOV|HWCAP_I386_MMX|HWCAP_I386_SSE|HWCAP_I386_SSE2),
HWCAP_I386_SSE3 = 1 << 0,
HWCAP_I386_SSE4 = 1 << 9,
HWCAP_I386_ECX_FLAGS = (HWCAP_I386_SSE3|HWCAP_I386_SSE4),
HWCAP_I386_SSSE3 = 1 << 9,
HWCAP_I386_ECX_FLAGS = (HWCAP_I386_SSE3|HWCAP_I386_SSSE3),
};
// Determine x86 CPU features
@ -110,10 +110,10 @@ bool cpuinfo_check_sse3(void)
return x86_cpu_features & HWCAP_I386_SSE3;
}
// Check for x86 feature SSE4
bool cpuinfo_check_sse4(void)
// Check for x86 feature SSSE3
bool cpuinfo_check_ssse3(void)
{
return x86_cpu_features & HWCAP_I386_SSE4;
return x86_cpu_features & HWCAP_I386_SSSE3;
}
// PowerPC CPU features

View File

@ -36,8 +36,8 @@ extern bool cpuinfo_check_sse2(void);
// Check for x86 feature SSE3
extern bool cpuinfo_check_sse3(void);
// Check for x86 feature SSE4
extern bool cpuinfo_check_sse4(void);
// Check for x86 feature SSSE3
extern bool cpuinfo_check_ssse3(void);
// Check for ppc feature VMX (Altivec)
extern bool cpuinfo_check_altivec(void);