diff options
author | comex | 2015-02-18 02:57:08 -0500 |
---|---|---|
committer | comex | 2015-02-18 02:57:08 -0500 |
commit | ce8cffd7cba9925779163fa4380f98b2f70f5a7b (patch) | |
tree | d5229e823757b8e836a28fd00ffd7bb1c67e4d7d /lib/arm64 | |
parent | er, don't unnecessarily spam thread start/resume. (diff) | |
download | substitute-ce8cffd7cba9925779163fa4380f98b2f70f5a7b.tar.gz |
various fixes
Diffstat (limited to 'lib/arm64')
-rw-r--r-- | lib/arm64/arch-dis.h | 5 |
1 files changed, 1 insertions, 4 deletions
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) |