< prev index next >

src/cpu/aarch64/vm/globals_aarch64.hpp

Print this page
rev 8083 : 8079203: AARCH64: Need to cater for different partner implementations
Summary: Parse /proc/cpuinfo to derive implementation specific info
Reviewed-by: duke


  79 #if defined(COMPILER1) || defined(COMPILER2)
  80 define_pd_global(intx, InlineSmallCode,          1000);
  81 #endif
  82 
  83 #ifdef BUILTIN_SIM
  84 #define UseBuiltinSim           true
  85 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \
  86                                                                         \
  87   product(bool, NotifySimulator, UseBuiltinSim,                         \
  88          "tell the AArch64 sim where we are in method code")            \
  89                                                                         \
  90   product(bool, UseSimulatorCache, false,                               \
  91          "tell sim to cache memory updates until exclusive op occurs")  \
  92                                                                         \
  93   product(bool, DisableBCCheck, true,                                   \
  94           "tell sim not to invoke bccheck callback")                    \
  95                                                                         \
  96   product(bool, NearCpool, true,                                        \
  97          "constant pool is close to instructions")                      \
  98                                                                         \
  99   notproduct(bool, UseAcqRelForVolatileFields, false,                   \
 100              "Use acquire and release insns for volatile fields")       \
 101                                                                         \
 102   product(bool, UseCRC32, false,                                        \
 103           "Use CRC32 instructions for CRC32 computation")               \
 104 
 105 // Don't attempt to use Neon on builtin sim until builtin sim supports it
 106 #define UseCRC32 false
 107 
 108 #else
 109 #define UseBuiltinSim           false
 110 #define NotifySimulator         false
 111 #define UseSimulatorCache       false
 112 #define DisableBCCheck          true
 113 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \
 114                                                                         \
 115   product(bool, NearCpool, true,                                        \
 116          "constant pool is close to instructions")                      \
 117                                                                         \
 118   notproduct(bool, UseAcqRelForVolatileFields, false,                   \
 119              "Use acquire and release insns for volatile fields")       \
 120   product(bool, UseNeon, false,                                         \
 121           "Use Neon for CRC32 computation")                             \
 122   product(bool, UseCRC32, false,                                        \
 123           "Use CRC32 instructions for CRC32 computation")               \
 124   product(bool, TraceTraps, false, "Trace all traps the signal handler")
 125 
 126 #endif
 127 
 128 
 129 #endif // CPU_AARCH64_VM_GLOBALS_AARCH64_HPP


  79 #if defined(COMPILER1) || defined(COMPILER2)
  80 define_pd_global(intx, InlineSmallCode,          1000);
  81 #endif
  82 
  83 #ifdef BUILTIN_SIM
  84 #define UseBuiltinSim           true
  85 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \
  86                                                                         \
  87   product(bool, NotifySimulator, UseBuiltinSim,                         \
  88          "tell the AArch64 sim where we are in method code")            \
  89                                                                         \
  90   product(bool, UseSimulatorCache, false,                               \
  91          "tell sim to cache memory updates until exclusive op occurs")  \
  92                                                                         \
  93   product(bool, DisableBCCheck, true,                                   \
  94           "tell sim not to invoke bccheck callback")                    \
  95                                                                         \
  96   product(bool, NearCpool, true,                                        \
  97          "constant pool is close to instructions")                      \
  98                                                                         \
  99   product(bool, UseBarriersForVolatile, false,                          \
 100           "Use memory barriers to implement volatile accesses")         \
 101                                                                         \
 102   product(bool, UseCRC32, false,                                        \
 103           "Use CRC32 instructions for CRC32 computation")               \
 104 
 105 // Don't attempt to use Neon on builtin sim until builtin sim supports it
 106 #define UseCRC32 false
 107 
 108 #else
 109 #define UseBuiltinSim           false
 110 #define NotifySimulator         false
 111 #define UseSimulatorCache       false
 112 #define DisableBCCheck          true
 113 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \
 114                                                                         \
 115   product(bool, NearCpool, true,                                        \
 116          "constant pool is close to instructions")                      \
 117                                                                         \
 118   product(bool, UseBarriersForVolatile, false,                          \
 119           "Use memory barriers to implement volatile accesses")         \
 120   product(bool, UseNeon, false,                                         \
 121           "Use Neon for CRC32 computation")                             \
 122   product(bool, UseCRC32, false,                                        \
 123           "Use CRC32 instructions for CRC32 computation")               \
 124   product(bool, TraceTraps, false, "Trace all traps the signal handler")
 125 
 126 #endif
 127 
 128 
 129 #endif // CPU_AARCH64_VM_GLOBALS_AARCH64_HPP
< prev index next >