14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "jvm.h"
28 #include "asm/assembler.inline.hpp"
29 #include "compiler/disassembler.hpp"
30 #include "code/compiledIC.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "runtime/java.hpp"
33 #include "runtime/stubCodeGenerator.hpp"
34 #include "vm_version_s390.hpp"
35
36 # include <sys/sysinfo.h>
37
38 bool VM_Version::_is_determine_features_test_running = false;
39 const char* VM_Version::_model_string;
40
41 unsigned long VM_Version::_features[_features_buffer_len] = {0, 0, 0, 0};
42 unsigned long VM_Version::_cipher_features[_features_buffer_len] = {0, 0, 0, 0};
43 unsigned long VM_Version::_msgdigest_features[_features_buffer_len] = {0, 0, 0, 0};
44 unsigned int VM_Version::_nfeatures = 0;
45 unsigned int VM_Version::_ncipher_features = 0;
46 unsigned int VM_Version::_nmsgdigest_features = 0;
47 unsigned int VM_Version::_Dcache_lineSize = 256;
48 unsigned int VM_Version::_Icache_lineSize = 256;
49
50 static const char* z_gen[] = {" ", "G1", "G2", "G3", "G4", "G5", "G6", "G7" };
51 static const char* z_machine[] = {" ", "2064", "2084", "2094", "2097", "2817", " ", "2964" };
52 static const char* z_name[] = {" ", "z900", "z990", "z9 EC", "z10 EC", "z196 EC", "ec12", "z13" };
53
54 void VM_Version::initialize() {
55 determine_features(); // Get processor capabilities.
56 set_features_string(); // Set a descriptive feature indication.
57
58 if (Verbose) {
59 print_features();
60 }
61
62 intx cache_line_size = Dcache_lineSize(0);
63
64 #ifdef COMPILER2
65 MaxVectorSize = 8;
66 #endif
67
68 if (has_PrefetchRaw()) {
|
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "jvm.h"
28 #include "asm/assembler.inline.hpp"
29 #include "compiler/disassembler.hpp"
30 #include "code/compiledIC.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "runtime/java.hpp"
33 #include "runtime/stubCodeGenerator.hpp"
34 #include "runtime/vm_version.hpp"
35
36 # include <sys/sysinfo.h>
37
38 bool VM_Version::_is_determine_features_test_running = false;
39 const char* VM_Version::_model_string;
40
41 unsigned long VM_Version::_features[_features_buffer_len] = {0, 0, 0, 0};
42 unsigned long VM_Version::_cipher_features[_features_buffer_len] = {0, 0, 0, 0};
43 unsigned long VM_Version::_msgdigest_features[_features_buffer_len] = {0, 0, 0, 0};
44 unsigned int VM_Version::_nfeatures = 0;
45 unsigned int VM_Version::_ncipher_features = 0;
46 unsigned int VM_Version::_nmsgdigest_features = 0;
47 unsigned int VM_Version::_Dcache_lineSize = DEFAULT_CACHE_LINE_SIZE;
48 unsigned int VM_Version::_Icache_lineSize = DEFAULT_CACHE_LINE_SIZE;
49
50 static const char* z_gen[] = {" ", "G1", "G2", "G3", "G4", "G5", "G6", "G7" };
51 static const char* z_machine[] = {" ", "2064", "2084", "2094", "2097", "2817", " ", "2964" };
52 static const char* z_name[] = {" ", "z900", "z990", "z9 EC", "z10 EC", "z196 EC", "ec12", "z13" };
53
54 void VM_Version::initialize() {
55 determine_features(); // Get processor capabilities.
56 set_features_string(); // Set a descriptive feature indication.
57
58 if (Verbose) {
59 print_features();
60 }
61
62 intx cache_line_size = Dcache_lineSize(0);
63
64 #ifdef COMPILER2
65 MaxVectorSize = 8;
66 #endif
67
68 if (has_PrefetchRaw()) {
|