|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
15 #ifndef included_asm_x86_h
16 #define included_asm_x86_h
39 #define X86_INSN_FLAG_DEFAULT_64_BIT (1 << 0)
40 #define X86_INSN_FLAG_SET_SSE_GROUP(n) ((n) << 5)
41 #define X86_INSN_FLAG_GET_SSE_GROUP(f) (((f) >> 5) & 0x1f)
42 #define X86_INSN_FLAG_SET_MODRM_REG_GROUP(n) (((n) & 0x3f) << 10)
43 #define X86_INSN_FLAG_GET_MODRM_REG_GROUP(f) (((f) >> 10) & 0x3f)
50 return i->operands[o].code !=
'_';
53 #define foreach_x86_legacy_prefix \
54 _ (OPERAND_SIZE, 0x66) \
55 _ (ADDRESS_SIZE, 0x67) \
56 _ (SEGMENT_CS, 0x2e) \
57 _ (SEGMENT_DS, 0x3e) \
58 _ (SEGMENT_ES, 0x26) \
59 _ (SEGMENT_FS, 0x64) \
60 _ (SEGMENT_GS, 0x65) \
61 _ (SEGMENT_SS, 0x36) \
66 #define foreach_x86_insn_parse_flag \
75 _ (OPERAND_SIZE_64, 0)
79 #define _(f,o) X86_INSN_FLAG_BIT_##f,
86 #define _(f,o) X86_INSN_##f = 1 << X86_INSN_FLAG_BIT_##f,
u8 log2_effective_address_bytes
static uword x86_insn_operand_is_valid(x86_insn_t *i, uword o)
u8 log2_effective_operand_bytes
format_function_t format_x86_insn_parse
static vnet_feature_upd_registration_t * regs
#define foreach_x86_insn_parse_flag
u8 * x86_insn_parse(x86_insn_parse_t *p, u8 *code_start)
#define foreach_x86_legacy_prefix
x86_insn_parse_flag_bit_t