Suggestion to add some changes to 
src/freenet/support/CPUInformation/CPUID.java
for AMD64 CPU recognition

reference material was
http://www.sandpile.org/ia32/cpuid.htm

patch is attached to this message




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--- src/freenet/support/CPUInformation/CPUID.java	2006-02-14 19:51:10.000000000 -0500
+++ ../new/src/freenet/support/CPUInformation/CPUID.java	2006-02-14 21:00:19.000000000 -0500
@@ -231,15 +231,26 @@
 						return "Athlon (Barton)";
 				}
 			}
-			if(getCPUFamily() == 15){
-				if(getCPUExtendedFamily() == 0){
+			if(getCPUFamily() == 15){ //Must check Extended Family
+				if(getCPUExtendedFamily() == 0){ //AMD K8
+                           // This just tells us socket type and chip die technology
+			  // see BrandID both the ID and NN portions
+                          // If you need to determine a specific chip brand
 					switch(getCPUModel()){
-						case 4:
+			        		case 4:
 							return "Athlon 64";
 						case 5:
 							return "Athlon 64 FX Opteron";
+						case 7:
+						        return "Athlon 64 (0.13 um 939)";
+						case 8:
+						        return "Athlon 64 (0.13 um 754)";
+						case 11:
+							return "Athlon 64 (0.13 um 939)";
 						case 12:
-							return "AMD Athlon(tm) 64 Processor 3000+";
+						        return "Athlon 64 (0.13 um 754)";
+						case 15: 
+						        return "Athlon 64 (0.13 um 939)";
 					}
 				}
 			}
@@ -371,6 +382,7 @@
 		System.out.println("**CPUInfo**");
 		System.out.println("CPU Vendor: " + getCPUVendorID());
 		System.out.println("CPU Family: " + getCPUFamily());
+		System.out.println("CPU Extended Family: " + getCPUExtendedFamily());
 		System.out.println("CPU Model: " + getCPUModel());
 		System.out.println("CPU Stepping: " + getCPUStepping());
 		System.out.println("CPU Flags: " + getCPUFlags());
_______________________________________________
Devl mailing list
Devl@freenetproject.org
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to