Print this page


Split Close
Expand all
Collapse all
          --- old/src/cpu/sparc/vm/vm_version_sparc.hpp
          +++ new/src/cpu/sparc/vm/vm_version_sparc.hpp
   1    1  /*
   2      - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
   3    3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4   *
   5    5   * This code is free software; you can redistribute it and/or modify it
   6    6   * under the terms of the GNU General Public License version 2 only, as
   7    7   * published by the Free Software Foundation.
   8    8   *
   9    9   * This code is distributed in the hope that it will be useful, but WITHOUT
  10   10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11   11   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12   12   * version 2 for more details (a copy is included in the LICENSE file that
↓ open down ↓ 104 lines elided ↑ open up ↑
 117  117    static bool has_vis3()                { return (_features & vis3_instructions_m) != 0; }
 118  118    static bool has_blk_init()            { return (_features & blk_init_instructions_m) != 0; }
 119  119    static bool has_cbcond()              { return (_features & cbcond_instructions_m) != 0; }
 120  120  
 121  121    static bool supports_compare_and_exchange()
 122  122                                          { return has_v9(); }
 123  123  
 124  124    // Returns true if the platform is in the niagara line (T series)
 125  125    // and newer than the niagara1.
 126  126    static bool is_niagara_plus()         { return is_T_family(_features) && !is_T1_model(_features); }
      127 +  
      128 +  static bool is_M_series()             { return is_M_family(_features); }
 127  129    static bool is_T4()                   { return is_T_family(_features) && has_cbcond(); }
 128  130  
 129  131    // Fujitsu SPARC64
 130  132    static bool is_sparc64()              { return (_features & sparc64_family_m) != 0; }
 131  133  
 132  134    static bool is_sun4v()                { return (_features & sun4v_m) != 0; }
 133  135    static bool is_ultra3()               { return (_features & ultra3_m) == ultra3_m && !is_sun4v() && !is_sparc64(); }
 134  136  
 135  137    static bool has_fast_fxtof()          { return is_niagara() || is_sparc64() || has_v9() && !is_ultra3(); }
 136  138    static bool has_fast_idiv()           { return is_niagara_plus() || is_sparc64(); }
↓ open down ↓ 57 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX