# HG changeset patch # User michael # Date 1089942847 0 # Node ID b601489852018040734ce6cd962986e7b62b865b # Parent 87aaf3c351f56fd3e15e8cefe753c266564cd01c 10l and better MMX/SSE detection for VIA1000 diff -r 87aaf3c351f5 -r b60148985201 i386/cputest.c --- a/i386/cputest.c Thu Jul 15 15:14:13 2004 +0000 +++ b/i386/cputest.c Fri Jul 16 01:54:07 2004 +0000 @@ -92,6 +92,8 @@ rval |= MM_MMX; if( edx & ( 1 << 24) ) rval |= MM_MMXEXT; + if(rval==0) + goto inteltest; return rval; } else if (ebx == 0x69727943 && edx == 0x736e4978 && @@ -135,7 +137,7 @@ { int mm_flags; mm_flags = mm_support(); - printf("mm_support = 0x%08u\n",mm_flags); + printf("mm_support = 0x%08X\n",mm_flags); return 0; } #endif