equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
64 int VM_Version::platform_features(int features) { |
64 int VM_Version::platform_features(int features) { |
65 // Default to generic v9 |
65 // Default to generic v9 |
66 features = generic_v9_m; |
66 features = generic_v9_m; |
67 |
67 |
68 if (detect_niagara()) { |
68 if (detect_niagara()) { |
69 if (PrintMiscellaneous && Verbose) { tty->print_cr("Detected Linux on Niagara"); } |
69 log_info(os, cpu)("Detected Linux on Niagara"); |
70 features = niagara1_m | T_family_m; |
70 features = niagara1_m | T_family_m; |
71 } |
71 } |
72 |
72 |
73 if (detect_M_family()) { |
73 if (detect_M_family()) { |
74 if (PrintMiscellaneous && Verbose) { tty->print_cr("Detected Linux on M family"); } |
74 log_info(os, cpu)("Detected Linux on M family"); |
75 features = sun4v_m | generic_v9_m | M_family_m | T_family_m; |
75 features = sun4v_m | generic_v9_m | M_family_m | T_family_m; |
76 } |
76 } |
77 |
77 |
78 if (detect_blkinit()) { |
78 if (detect_blkinit()) { |
79 features |= blk_init_instructions_m; |
79 features |= blk_init_instructions_m; |