Changeset f6da5f4 for core/java


Ignore:
Timestamp:
Jul 10, 2018 8:33:23 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6ad1de8
Parents:
02669fa
Message:

CPUID: Recognize Hygon processors

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

Legend:

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

    r02669fa rf6da5f4  
    478478          }
    479479          break;
     480
     481        // http://lkml.iu.edu/hypermail/linux/kernel/1806.1/00730.html
     482        // untested
     483          case 24: {
     484            isK6Compatible = true;
     485            isK6_2_Compatible = true;
     486            isK6_3_Compatible = true;
     487            isAthlonCompatible = true;
     488            isAthlon64Compatible = true;
     489            // Pending testing of the bulldozer jbigi
     490            //isPiledriverCompatible = true;
     491            //isSteamrollerCompatible = true;
     492            //isExcavatorCompatible = true;
     493            //isBulldozerCompatible = true;
     494            modelString = "Hygon Dhyana model " + model;
     495          }
     496          break;
    480497        }
    481498        return modelString;
  • core/java/src/freenet/support/CPUInformation/CPUID.java

    r02669fa rf6da5f4  
    311311        if(!isX86)
    312312            throw new UnknownCPUException("Failed to read CPU information from the system. The CPUID instruction exists on x86 CPUs only.");
    313         if(id.equals("AuthenticAMD"))
     313        // http://lkml.iu.edu/hypermail/linux/kernel/1806.1/00730.html
     314        if(id.equals("AuthenticAMD") || id.equals("HygonGenuine"))
    314315            return new AMDInfoImpl();
    315316        if(id.equals("GenuineIntel"))
Note: See TracChangeset for help on using the changeset viewer.