* bobbie sanford <bobsanfn at yahoo.com> [2006-02-14 18:14:59]:
> 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
Thanks for the patch :)
I've attached it to the revelant ticket in mantis. Will commit when I
get around to it.
https://bugs.freenetproject.org/view.php?id=74
Btw, does anybody own a x86_64 running windows_x64 with a C development toolkit
installed ?
> --- 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 at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl