diff cpudetect.c @ 2280:b318387bfeda

amd fix
author pontscho
date Fri, 19 Oct 2001 13:01:31 +0000
parents c26a9eff0993
children faf96aeb93ef
line wrap: on
line diff
--- a/cpudetect.c	Fri Oct 19 12:30:01 2001 +0000
+++ b/cpudetect.c	Fri Oct 19 13:01:31 2001 +0000
@@ -91,7 +91,8 @@
 		return;*/
 	do_cpuid(0x00000000, regs);
 	printf("CPU vendor name: %.4s%.4s%.4s\n",&regs[1],&regs[3],&regs[2]);
-	if (regs[0]>0x00000001) {
+//	if (regs[0]>0x00000001) 
+	{
 		do_cpuid(0x00000001, regs2);
 		printf("CPU family: %d\n",(regs2[0] >> 8)&0xf);
 		switch ((regs2[0] >> 8)&0xf) {
@@ -105,7 +106,7 @@
 				caps->cpuType=CPUTYPE_I586;
 				break;
 			case 6:
-				caps->cpuType=CPUTYPE_I586;
+				caps->cpuType=CPUTYPE_I686;
 				break;
 			default:
 				printf("Unknown cpu type, default to i386\n");
@@ -292,4 +293,4 @@
    gCpuCaps.hasSSE=0;
 #endif /* __linux__ */
 }
-#endif /* ARCH_X86 */
\ No newline at end of file
+#endif /* ARCH_X86 */