hotspot/src/cpu/sparc/vm/vm_version_sparc.hpp
changeset 183 ba55c7f3fd45
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
equal deleted inserted replaced
182:eae79d9b9d46 183:ba55c7f3fd45
    62   static int  determine_features();
    62   static int  determine_features();
    63   static int  platform_features(int features);
    63   static int  platform_features(int features);
    64 
    64 
    65   static bool is_niagara1(int features) { return (features & niagara1_m) == niagara1_m; }
    65   static bool is_niagara1(int features) { return (features & niagara1_m) == niagara1_m; }
    66 
    66 
       
    67   static int maximum_niagara1_processor_count() { return 32; }
       
    68   // Returns true if the platform is in the niagara line and
       
    69   // newer than the niagara1.
       
    70   static bool is_niagara1_plus();
       
    71 
    67 public:
    72 public:
    68   // Initialization
    73   // Initialization
    69   static void initialize();
    74   static void initialize();
    70 
    75 
    71   // Instruction support
    76   // Instruction support
   127   static void allow_all();
   132   static void allow_all();
   128   static void revert();
   133   static void revert();
   129 
   134 
   130   // Override the Abstract_VM_Version implementation.
   135   // Override the Abstract_VM_Version implementation.
   131   static uint page_size_count() { return is_sun4v() ? 4 : 2; }
   136   static uint page_size_count() { return is_sun4v() ? 4 : 2; }
       
   137 
       
   138   // Calculates the number of parallel threads
       
   139   static unsigned int calc_parallel_worker_threads();
   132 };
   140 };