hotspot/src/cpu/sparc/vm/vm_version_sparc.cpp
changeset 34174 4db2fb26dc49
parent 33163 9e128b399e48
child 34176 c1b52e665b47
equal deleted inserted replaced
34173:01bb07d23a5b 34174:4db2fb26dc49
   356     if (!FLAG_IS_DEFAULT(UseUnalignedAccesses))
   356     if (!FLAG_IS_DEFAULT(UseUnalignedAccesses))
   357       warning("Unaligned memory access is not available on this CPU");
   357       warning("Unaligned memory access is not available on this CPU");
   358     FLAG_SET_DEFAULT(UseUnalignedAccesses, false);
   358     FLAG_SET_DEFAULT(UseUnalignedAccesses, false);
   359   }
   359   }
   360 
   360 
   361 #ifndef PRODUCT
       
   362   if (PrintMiscellaneous && Verbose) {
   361   if (PrintMiscellaneous && Verbose) {
   363     tty->print_cr("L1 data cache line size: %u", L1_data_cache_line_size());
   362     tty->print_cr("L1 data cache line size: %u", L1_data_cache_line_size());
   364     tty->print_cr("L2 data cache line size: %u", L2_data_cache_line_size());
   363     tty->print_cr("L2 data cache line size: %u", L2_data_cache_line_size());
   365     tty->print("Allocation");
   364     tty->print("Allocation");
   366     if (AllocatePrefetchStyle <= 0) {
   365     if (AllocatePrefetchStyle <= 0) {
   389     }
   388     }
   390     if (ContendedPaddingWidth > 0) {
   389     if (ContendedPaddingWidth > 0) {
   391       tty->print_cr("ContendedPaddingWidth %d", (int) ContendedPaddingWidth);
   390       tty->print_cr("ContendedPaddingWidth %d", (int) ContendedPaddingWidth);
   392     }
   391     }
   393   }
   392   }
   394 #endif // PRODUCT
       
   395 }
   393 }
   396 
   394 
   397 void VM_Version::print_features() {
   395 void VM_Version::print_features() {
   398   tty->print_cr("Version:%s", cpu_features());
   396   tty->print_cr("Version:%s", cpu_features());
   399 }
   397 }
   400 
   398 
   401 int VM_Version::determine_features() {
   399 int VM_Version::determine_features() {
   402   if (UseV8InstrsOnly) {
   400   if (UseV8InstrsOnly) {
   403     NOT_PRODUCT(if (PrintMiscellaneous && Verbose) tty->print_cr("Version is Forced-V8");)
   401     if (PrintMiscellaneous && Verbose) { tty->print_cr("Version is Forced-V8"); }
   404     return generic_v8_m;
   402     return generic_v8_m;
   405   }
   403   }
   406 
   404 
   407   int features = platform_features(unknown_m); // platform_features() is os_arch specific
   405   int features = platform_features(unknown_m); // platform_features() is os_arch specific
   408 
   406 
   414   assert(is_T_family(features) == is_niagara(features), "Niagara should be T series");
   412   assert(is_T_family(features) == is_niagara(features), "Niagara should be T series");
   415   if (UseNiagaraInstrs) { // Force code generation for Niagara
   413   if (UseNiagaraInstrs) { // Force code generation for Niagara
   416     if (is_T_family(features)) {
   414     if (is_T_family(features)) {
   417       // Happy to accomodate...
   415       // Happy to accomodate...
   418     } else {
   416     } else {
   419       NOT_PRODUCT(if (PrintMiscellaneous && Verbose) tty->print_cr("Version is Forced-Niagara");)
   417       if (PrintMiscellaneous && Verbose) { tty->print_cr("Version is Forced-Niagara"); }
   420       features |= T_family_m;
   418       features |= T_family_m;
   421     }
   419     }
   422   } else {
   420   } else {
   423     if (is_T_family(features) && !FLAG_IS_DEFAULT(UseNiagaraInstrs)) {
   421     if (is_T_family(features) && !FLAG_IS_DEFAULT(UseNiagaraInstrs)) {
   424       NOT_PRODUCT(if (PrintMiscellaneous && Verbose) tty->print_cr("Version is Forced-Not-Niagara");)
   422       if (PrintMiscellaneous && Verbose) { tty->print_cr("Version is Forced-Not-Niagara"); }
   425       features &= ~(T_family_m | T1_model_m);
   423       features &= ~(T_family_m | T1_model_m);
   426     } else {
   424     } else {
   427       // Happy to accomodate...
   425       // Happy to accomodate...
   428     }
   426     }
   429   }
   427   }