mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
cpu/drcbearm64.cpp: Fixed ADRP usage. (#13239)
ADRP output must always be an X register.
This commit is contained in:
parent
8430afa2bc
commit
4b221bbfce
@ -499,7 +499,7 @@ void drcbe_arm64::get_imm_relative(a64::Assembler &a, const a64::Gp ®, 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user