Changeset f5b6d56


Ignore:
Timestamp:
Jan 8, 2012 7:54:22 PM (9 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
b09071f
Parents:
527c4b58
Message:

Added support for AMD Bulldozer CPUs. Fixed issue with last commit.

Location:
core/java/src/freenet/support/CPUInformation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/freenet/support/CPUInformation/AMDCPUInfo.java

    r527c4b58 rf5b6d56  
    4444     */
    4545        public boolean IsBobcatCompatible();
     46    /**
     47     * @return true if the CPU present in the machine is at least a 'bulldozer' CPU
     48     */
     49        public boolean IsBulldozerCompatible();
    4650}
  • core/java/src/freenet/support/CPUInformation/AMDInfoImpl.java

    r527c4b58 rf5b6d56  
    1414    protected static boolean isAthlon64Compatible = false;
    1515    protected static boolean isBobcatCompatible = false;
     16    protected static boolean isBulldozerCompatible = false;
    1617
    1718    // If modelString != null, the cpu is considered correctly identified.
     
    3132
    3233    public boolean IsBobcatCompatible(){ return isBobcatCompatible; }
     34
     35        public boolean IsBulldozerCompatible(){ return isBulldozerCompatible; }
    3336
    3437        static
     
    350353            }
    351354        }
     355        //Bulldozer
     356        if(CPUID.getCPUFamily() + CPUID.getCPUExtendedFamily() == 21){
     357            isK6Compatible = true;
     358            isK6_2_Compatible = true;
     359            isK6_3_Compatible = true;
     360            isAthlonCompatible = true;
     361            isAthlon64Compatible = true;
     362            isBobcatCompatible = true;
     363                        isBulldozerCompatible = true;
     364            isX64 = true;
     365            switch(CPUID.getCPUModel() + CPUID.getCPUExtendedModel()){
     366                case 1:                   
     367                    modelString = "Bulldozer FX-6***/FX-8***";
     368                    break;
     369            }
     370        }
    352371    }
    353372
  • core/java/src/freenet/support/CPUInformation/IntelInfoImpl.java

    r527c4b58 rf5b6d56  
    245245                        modelString = "Core i7 (32nm)";
    246246                        break;
    247                     case 12:
     247                    case 13:
    248248                        modelString = "Core i7 Extreme Edition (32nm)";
    249249                        break;
Note: See TracChangeset for help on using the changeset viewer.