--- a/hotspot/src/cpu/s390/vm/vm_version_s390.cpp Mon Jul 31 12:37:34 2017 -0700
+++ b/hotspot/src/cpu/s390/vm/vm_version_s390.cpp Tue Aug 01 15:08:10 2017 +0200
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2016 SAP SE. All rights reserved.
+ * Copyright (c) 2016, 2017 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -153,6 +153,10 @@
warning("AES intrinsics are not available on this CPU");
FLAG_SET_DEFAULT(UseAESIntrinsics, false);
}
+ if (UseAESIntrinsics && !UseAES) {
+ warning("AES intrinsics require UseAES flag to be enabled. Intrinsics will be disabled.");
+ FLAG_SET_DEFAULT(UseAESIntrinsics, false);
+ }
// TODO: implement AES/CTR intrinsics
if (UseAESCTRIntrinsics) {