src/cpu/sparc/vm/vm_version_sparc.hpp

changeset 445
28372612af5e
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- a/src/cpu/sparc/vm/vm_version_sparc.hpp	Thu Feb 21 11:03:54 2008 -0800
     1.2 +++ b/src/cpu/sparc/vm/vm_version_sparc.hpp	Fri Feb 22 17:17:14 2008 -0800
     1.3 @@ -64,6 +64,11 @@
     1.4  
     1.5    static bool is_niagara1(int features) { return (features & niagara1_m) == niagara1_m; }
     1.6  
     1.7 +  static int maximum_niagara1_processor_count() { return 32; }
     1.8 +  // Returns true if the platform is in the niagara line and
     1.9 +  // newer than the niagara1.
    1.10 +  static bool is_niagara1_plus();
    1.11 +
    1.12  public:
    1.13    // Initialization
    1.14    static void initialize();
    1.15 @@ -129,4 +134,7 @@
    1.16  
    1.17    // Override the Abstract_VM_Version implementation.
    1.18    static uint page_size_count() { return is_sun4v() ? 4 : 2; }
    1.19 +
    1.20 +  // Calculates the number of parallel threads
    1.21 +  static unsigned int calc_parallel_worker_threads();
    1.22  };

mercurial