From 0222409941819b1237d53df5e6eefddd0020b6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3n=20Seoane=20Ampudia?= Date: Fri, 6 Feb 2026 09:50:17 +0100 Subject: [PATCH] Recover mistakenly deleted function --- src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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);