From bd22f1a62adc6a5fc0645484039ba099a3a72e04 Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 24 Jan 2015 22:23:27 -0500 Subject: it compiles... --- lib/arm64/assemble.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/arm64/assemble.h') diff --git a/lib/arm64/assemble.h b/lib/arm64/assemble.h index 00797e9..c20c219 100644 --- a/lib/arm64/assemble.h +++ b/lib/arm64/assemble.h @@ -47,7 +47,9 @@ static inline void ADRP_ADD(void **codep, int reg, uint64_t pc, uint64_t dpc) { /* ADD reg, reg, #lo */ op32(codep, 0x91000000 | reg | reg << 5 | lo << 10); } - /* BR reg */ +} + +static inline void BR(void **codep, int reg) { op32(codep, 0xd61f0000 | reg << 5); } -- cgit v1.2.3