changeset 2280:b318387bfeda

amd fix
author pontscho
date Fri, 19 Oct 2001 13:01:31 +0000
parents 9b9c3363abbe
children faf96aeb93ef
files cpudetect.c cpudetect.h
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
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 */
--- a/cpudetect.h	Fri Oct 19 12:30:01 2001 +0000
+++ b/cpudetect.h	Fri Oct 19 13:01:31 2001 +0000
@@ -3,6 +3,7 @@
 #define CPUTYPE_I386	0
 #define CPUTYPE_I486	1
 #define CPUTYPE_I586	2
+#define CPUTYPE_I686    3
 
 typedef struct cpucaps_s {
 	int cpuType;