diff --git a/src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp b/src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp index d2d974ddd3a..5b85f930474 100644 --- a/src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp +++ b/src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp @@ -75,6 +75,7 @@ public: return (encoding() & 0xff000000) == 0x10000000; } + inline bool is_nop() const; bool is_jump(); bool is_general_jump(); inline bool is_cond_jump(); @@ -393,6 +394,11 @@ public: static void insert(address code_pos); }; +inline bool NativeInstruction::is_nop() const{ + uint32_t insn = *(uint32_t*)addr_at(0); + return insn == 0xd503201f; +} + inline bool NativeInstruction::is_jump() { uint32_t insn = *(uint32_t*)addr_at(0);