Skip to content

Commit

Permalink
drcbearm64: Fix ADRP usage
Browse files Browse the repository at this point in the history
  • Loading branch information
987123879113 committed Jan 17, 2025
1 parent 8430afa commit d230361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/cpu/drcbearm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void drcbe_arm64::get_imm_relative(a64::Assembler &a, const a64::Gp &reg, const
const uint64_t targetpage = (uint64_t)ptr & ~make_bitmask<uint64_t>(12);
const uint64_t pageoffs = (uint64_t)ptr & util::make_bitmask<uint64_t>(12);

a.adrp(reg, targetpage);
a.adrp(reg.x(), targetpage);
if (pageoffs != 0)
a.add(reg, reg, pageoffs);

Expand Down

0 comments on commit d230361

Please sign in to comment.