aboutsummaryrefslogtreecommitdiff
path: root/lib/x86/arch-dis.h
blob: a76884fe5665f064c015722788ed318a0719c0d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#define MIN_INSN_SIZE 1
/* min([18 * 3,
 *      4 + 18 + 15 + 18,
 *      6 + 12])
 * See transform_dis_* for size figures.  Technically unsafe, since we don't
 * check for overlong x86 instructions. */
#define TD_MAX_REWRITTEN_SIZE 55

struct arch_pcrel_info {
    int reg;
    bool is_jump;
};

struct arch_dis_ctx {};
static inline void arch_dis_ctx_init(UNUSED struct arch_dis_ctx *ctx) {}
static inline int arch_code_alignment(UNUSED struct arch_dis_ctx ctx) {
   return 4;
}