> -----Original Message----- > From: H.J. Lu > Sent: Monday, September 21, 2020 11:43 AM > To: Cui, Lili > Cc: binutils@sourceware.org; Jan Beulich > Subject: Re: Enable support to Intel Key locker instructions. > > On Sun, Sep 20, 2020 at 8:26 PM Cui, Lili wrote: > > > > Hi all, > > > > This patch is about to enable binutils support for Key Locker, Key > > Locker provides a mechanism to encrypt and decrypt data with an AES > > key without having access to the raw key value by converting AES keys > > into "handles", more details please refer to > > https://software.intel.com/content/www/us/en/develop/download/intel- > ke > > y-locker-specification.html > > > > Make check-gas is ok. > > > > Enable support to Intel Key locker instructions. > > > > gas/ > > * config/tc-i386.c (cpu_arch): Add .kl and .wide_kl. > > (cpu_noarch): Likewise. > > * doc/c-i386.texi: Document kl and wide_kl. > > * testsuite/gas/i386/i386.exp: Run keylocker tests. > > * testsuite/gas/i386/keylocker-intel.d: New test. > > * testsuite/gas/i386/keylocker.d: Likewise. > > * testsuite/gas/i386/keylocker.s: Likewise. > > * testsuite/gas/i386/x86-64-keylocker-intel.d: Likewise. > > * testsuite/gas/i386/x86-64-keylocker.d: Likewise. > > * testsuite/gas/i386/x86-64-keylocker.s: Likewise. > > > > opcodes/ > > * i386-dis.c (enum): Add REG_0F38D8_PREFIX_1, > > MOD_0F38FA_PREFIX_1, MOD_0F38FB_PREFIX_1, > > MOD_0F38DC_PREFIX_1, MOD_0F38DD_PREFIX_1, > > MOD_0F38DE_PREFIX_1, MOD_0F38DF_PREFIX_1, > > PREFIX_0F38D8, PREFIX_0F38FA, PREFIX_0F38FB. > > (reg_table): New instructions (see prefixes above). > > (prefix_table): Likewise. > > (three_byte_table): Likewise. > > (mod_table): Likewise > > * i386-gen.c (cpu_flag_init): Add CPU_KL_FLAGS, CPU_WIDE_KL_FLAGS, > > CPU_ANY_KL_FLAGS and CPU_ANY_WIDE_KL_FLAGS. > > (cpu_flags): Likewise. > > (operand_type_init): Likewise. > > * i386-opc.h (enum): Add CpuKL and CpuWIDE_KL. > > (i386_cpu_flags): Add cpukl and cpuwide_kl. > > * i386-opc.tbl: Add KL and WIDE_KL insns. > > * i386-init.h: Regenerate. > > * i386-tbl.h: Likewise. > > Please add an entry to gas/NEWS: > > * Add support for Intel Key Locker instructions. > > OK with this change. > > Thanks. > > -- > H.J. Added it, Thanks. Lili.