From ce8cffd7cba9925779163fa4380f98b2f70f5a7b Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 18 Feb 2015 02:57:08 -0500 Subject: various fixes --- lib/arm64/arch-dis.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/arm64/arch-dis.h') diff --git a/lib/arm64/arch-dis.h b/lib/arm64/arch-dis.h index f5b0518..142186f 100644 --- a/lib/arm64/arch-dis.h +++ b/lib/arm64/arch-dis.h @@ -1,6 +1,7 @@ #pragma once #define MIN_INSN_SIZE 4 #define TD_MAX_REWRITTEN_SIZE (7 * 2 * 4) /* also conservative */ +#define ARCH_MAX_CODE_ALIGNMENT 4 struct arch_pcrel_info { unsigned reg; @@ -26,10 +27,6 @@ static inline void arch_dis_ctx_init(struct arch_dis_ctx *ctx) { ctx->regs_possibly_written = 0; } -static inline int arch_code_alignment(UNUSED struct arch_dis_ctx ctx) { - return 4; -} - static inline int arm64_get_unwritten_temp_reg(struct arch_dis_ctx *ctx) { uint32_t avail = ~ctx->regs_possibly_written & ((1 << 19) - (1 << 9)); if (!avail) -- cgit v1.2.3