diff options
Diffstat (limited to 'arch/x86/lib/inat.c')
-rw-r--r-- | arch/x86/lib/inat.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/lib/inat.c b/arch/x86/lib/inat.c index 3fb5998..46fc4ee 100644 --- a/arch/x86/lib/inat.c +++ b/arch/x86/lib/inat.c @@ -76,3 +76,15 @@ insn_attr_t inat_get_group_attribute(insn_byte_t modrm, insn_byte_t last_pfx, inat_group_common_attribute(grp_attr); } +insn_attr_t inat_get_avx_attribute(insn_byte_t opcode, insn_byte_t vex_m, + insn_byte_t vex_p) +{ + const insn_attr_t *table; + if (vex_m > X86_VEX_M_MAX || vex_p > INAT_LSTPFX_MAX) + return 0; + table = inat_avx_tables[vex_m][vex_p]; + if (!table) + return 0; + return table[opcode]; +} + |