comparison src/cpu/ppc/vm/vm_version_ppc.cpp @ 20710:c5e86c5cd22e

8066964: ppc64: argument and return type profiling, fix problem with popframe Reviewed-by: roland, kvn
author goetz
date Fri, 12 Dec 2014 08:48:56 +0100
parents 327e7269f90d
children
comparison
equal deleted inserted replaced
20709:28f116adb50c 20710:c5e86c5cd22e
137 if (FLAG_IS_DEFAULT(AllocatePrefetchLines)) AllocatePrefetchLines = 3; // Optimistic value. 137 if (FLAG_IS_DEFAULT(AllocatePrefetchLines)) AllocatePrefetchLines = 3; // Optimistic value.
138 if (AllocatePrefetchDistance < 0) AllocatePrefetchDistance = 3*cache_line_size; // Default is not defined? 138 if (AllocatePrefetchDistance < 0) AllocatePrefetchDistance = 3*cache_line_size; // Default is not defined?
139 } 139 }
140 140
141 assert(AllocatePrefetchLines > 0, "invalid value"); 141 assert(AllocatePrefetchLines > 0, "invalid value");
142 if (AllocatePrefetchLines < 1) // Set valid value in product VM. 142 if (AllocatePrefetchLines < 1) { // Set valid value in product VM.
143 AllocatePrefetchLines = 1; // Conservative value. 143 AllocatePrefetchLines = 1; // Conservative value.
144 144 }
145 if (AllocatePrefetchStyle == 3 && AllocatePrefetchDistance < cache_line_size) 145
146 if (AllocatePrefetchStyle == 3 && AllocatePrefetchDistance < cache_line_size) {
146 AllocatePrefetchStyle = 1; // Fall back if inappropriate. 147 AllocatePrefetchStyle = 1; // Fall back if inappropriate.
148 }
147 149
148 assert(AllocatePrefetchStyle >= 0, "AllocatePrefetchStyle should be positive"); 150 assert(AllocatePrefetchStyle >= 0, "AllocatePrefetchStyle should be positive");
151
152 if (UseCRC32Intrinsics) {
153 if (!FLAG_IS_DEFAULT(UseCRC32Intrinsics))
154 warning("CRC32 intrinsics are not available on this CPU");
155 FLAG_SET_DEFAULT(UseCRC32Intrinsics, false);
156 }
157
158 // The AES intrinsic stubs require AES instruction support.
159 if (UseAES) {
160 warning("AES instructions are not available on this CPU");
161 FLAG_SET_DEFAULT(UseAES, false);
162 }
163 if (UseAESIntrinsics) {
164 if (!FLAG_IS_DEFAULT(UseAESIntrinsics))
165 warning("AES intrinsics are not available on this CPU");
166 FLAG_SET_DEFAULT(UseAESIntrinsics, false);
167 }
168
169 if (UseSHA) {
170 warning("SHA instructions are not available on this CPU");
171 FLAG_SET_DEFAULT(UseSHA, false);
172 }
173 if (UseSHA1Intrinsics || UseSHA256Intrinsics || UseSHA512Intrinsics) {
174 warning("SHA intrinsics are not available on this CPU");
175 FLAG_SET_DEFAULT(UseSHA1Intrinsics, false);
176 FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
177 FLAG_SET_DEFAULT(UseSHA512Intrinsics, false);
178 }
179
149 } 180 }
150 181
151 void VM_Version::print_features() { 182 void VM_Version::print_features() {
152 tty->print_cr("Version: %s cache_line_size = %d", cpu_features(), (int) get_cache_line_size()); 183 tty->print_cr("Version: %s cache_line_size = %d", cpu_features(), (int) get_cache_line_size());
153 } 184 }