diff options
Diffstat (limited to 'lib/arm64')
-rw-r--r-- | lib/arm64/assemble.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arm64/assemble.h b/lib/arm64/assemble.h index c4fb487..a58e227 100644 --- a/lib/arm64/assemble.h +++ b/lib/arm64/assemble.h @@ -48,7 +48,8 @@ static inline void LDRxi(void **codep, int Rt, int Rn, uint32_t off, static inline void ADRP_ADD(void **codep, int reg, uint64_t pc, uint64_t dpc) { uint64_t diff = (dpc & ~0xfff) - (pc & ~0xfff); /* ADRP reg, dpc */ - op32(codep, 0x90000000 | reg | (diff & 0x3000) << 17 | (diff & 0x1ffffc000) >> 9); + op32(codep, 0x90000000 | reg | (diff & 0x3000) << 17 | + (diff & 0x1ffffc000) >> 9); uint32_t lo = dpc & 0xfff; if (lo) { /* ADD reg, reg, #lo */ |