# HG changeset patch # User michael # Date 1102289203 0 # Node ID 9214c91cdfb71992d24fdd3984588fa109c62969 # Parent ed9bb4a45afa7746a807bb0b3f11d6d50bbbf54a detect sse on athlon-xp patch by (matthieu castet .< matthieu >at< free >.< fr>) diff -r ed9bb4a45afa -r 9214c91cdfb7 i386/cputest.c --- a/i386/cputest.c Sun Dec 05 23:21:39 2004 +0000 +++ b/i386/cputest.c Sun Dec 05 23:26:43 2004 +0000 @@ -25,7 +25,7 @@ /* Function to test if multimedia instructions are supported... */ int mm_support(void) { - int rval; + int rval = 0; int eax, ebx, ecx, edx; long a, c; @@ -64,7 +64,7 @@ cpuid(1, eax, ebx, ecx, edx); if ((edx & 0x00800000) == 0) return 0; - rval = MM_MMX; + rval |= MM_MMX; if (edx & 0x02000000) rval |= MM_MMXEXT | MM_SSE; if (edx & 0x04000000) @@ -85,7 +85,7 @@ rval |= MM_3DNOW; if (edx & 0x00400000) rval |= MM_MMXEXT; - return rval; + goto inteltest; } else if (ebx == 0x746e6543 && edx == 0x48727561 && ecx == 0x736c7561) { /* "CentaurHauls" */