--- a/src/hotspot/os_cpu/linux_arm/orderAccess_linux_arm.hpp Tue Nov 13 18:22:52 2018 -0800
+++ b/src/hotspot/os_cpu/linux_arm/orderAccess_linux_arm.hpp Tue Nov 13 21:43:10 2018 -0500
@@ -63,7 +63,7 @@
__asm__ volatile (
".word 0xF57FF050 | 0xf" : : : "memory");
#endif
- } else {
+ } else if (VM_Version::arm_arch() == 6) {
intptr_t zero = 0;
__asm__ volatile (
"mcr p15, 0, %0, c7, c10, 5"
@@ -80,7 +80,7 @@
__asm__ volatile (
".word 0xF57FF050 | 0xe" : : : "memory");
#endif
- } else {
+ } else if (VM_Version::arm_arch() == 6) {
intptr_t zero = 0;
__asm__ volatile (
"mcr p15, 0, %0, c7, c10, 5"