Skip to content

Commit

Permalink
Backport b972997af76a506ffd79ee8c6043e7a8db836b33
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Apr 25, 2024
1 parent 05f18b1 commit bb712a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,13 @@ static bool offset_for(uint32_t insn1, uint32_t insn2, ptrdiff_t &byte_offset) {
return false;
}

class Decoder : public RelocActions {
virtual reloc_insn adrpMem() { return &Decoder::adrpMem_impl; }
virtual reloc_insn adrpAdd() { return &Decoder::adrpAdd_impl; }
virtual reloc_insn adrpMovk() { return &Decoder::adrpMovk_impl; }
class AArch64Decoder : public RelocActions {
virtual reloc_insn adrpMem() { return &AArch64Decoder::adrpMem_impl; }
virtual reloc_insn adrpAdd() { return &AArch64Decoder::adrpAdd_impl; }
virtual reloc_insn adrpMovk() { return &AArch64Decoder::adrpMovk_impl; }

public:
Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}
AArch64Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}

virtual int loadStore(address insn_addr, address &target) {
intptr_t offset = Instruction_aarch64::sextract(_insn, 23, 5);
Expand Down Expand Up @@ -491,7 +491,7 @@ class Decoder : public RelocActions {
};

address MacroAssembler::target_addr_for_insn(address insn_addr, uint32_t insn) {
Decoder decoder(insn_addr, insn);
AArch64Decoder decoder(insn_addr, insn);
address target;
decoder.run(insn_addr, target);
return target;
Expand Down

0 comments on commit bb712a8

Please sign in to comment.