< prev index next >

src/hotspot/share/utilities/macros.hpp

Print this page
@@ -543,10 +543,36 @@
  #define AARCH64_PORT_ONLY(code)
  #endif
  
  #define MACOS_AARCH64_ONLY(x) MACOS_ONLY(AARCH64_ONLY(x))
  
+ #if defined(RISCV32) || defined(RISCV64)
+ #define RISCV
+ #define RISCV_ONLY(code) code
+ #define NOT_RISCV(code)
+ #else
+ #undef RISCV
+ #define RISCV_ONLY(code)
+ #define NOT_RISCV(code) code
+ #endif
+ 
+ #ifdef RISCV32
+ #define RISCV32_ONLY(code) code
+ #define NOT_RISCV32(code)
+ #else
+ #define RISCV32_ONLY(code)
+ #define NOT_RISCV32(code) code
+ #endif
+ 
+ #ifdef RISCV64
+ #define RISCV64_ONLY(code) code
+ #define NOT_RISCV64(code)
+ #else
+ #define RISCV64_ONLY(code)
+ #define NOT_RISCV64(code) code
+ #endif
+ 
  #ifdef VM_LITTLE_ENDIAN
  #define LITTLE_ENDIAN_ONLY(code) code
  #define BIG_ENDIAN_ONLY(code)
  #else
  #define LITTLE_ENDIAN_ONLY(code)
< prev index next >