15 #ifndef included_asm_x86_h 16 #define included_asm_x86_h 36 #define X86_INSN_FLAG_DEFAULT_64_BIT (1 << 0) 37 #define X86_INSN_FLAG_SET_SSE_GROUP(n) ((n) << 5) 38 #define X86_INSN_FLAG_GET_SSE_GROUP(f) (((f) >> 5) & 0x1f) 39 #define X86_INSN_FLAG_SET_MODRM_REG_GROUP(n) (((n) & 0x3f) << 10) 40 #define X86_INSN_FLAG_GET_MODRM_REG_GROUP(f) (((f) >> 10) & 0x3f) 50 #define foreach_x86_legacy_prefix \ 51 _ (OPERAND_SIZE, 0x66) \ 52 _ (ADDRESS_SIZE, 0x67) \ 53 _ (SEGMENT_CS, 0x2e) \ 54 _ (SEGMENT_DS, 0x3e) \ 55 _ (SEGMENT_ES, 0x26) \ 56 _ (SEGMENT_FS, 0x64) \ 57 _ (SEGMENT_GS, 0x65) \ 58 _ (SEGMENT_SS, 0x36) \ 63 #define foreach_x86_insn_parse_flag \ 72 _ (OPERAND_SIZE_64, 0) 75 #define _(f,o) X86_INSN_FLAG_BIT_##f, 82 #define _(f,o) X86_INSN_##f = 1 << X86_INSN_FLAG_BIT_##f, 96 u8 log2_index_scale : 2;
97 u8 log2_effective_operand_bytes : 3;
98 u8 log2_effective_address_bytes : 3;
sll srl srl sll sra u16x4 i
x86_insn_operand_t operands[3]
#define foreach_x86_insn_parse_flag
always_inline uword x86_insn_operand_is_valid(x86_insn_t *i, uword o)
#define foreach_x86_legacy_prefix
format_function_t format_x86_insn_parse
x86_insn_parse_flag_bit_t
u8 * x86_insn_parse(x86_insn_parse_t *p, u8 *code_start)