diff options
author | Cui,Lili <lili.cui@intel.com> | 2020-06-09 10:43:39 +0800 |
---|---|---|
committer | Cui,Lili <lili.cui@intel.com> | 2020-09-24 10:38:15 +0800 |
commit | 81d54bb7aec30fa09ee564c9a51765dc7c019799 (patch) | |
tree | c07124d5a8d2d6c9f4011f118afe10445ef2cc25 /opcodes/i386-opc.h | |
parent | 7469ddd78f8a5adc46dd1a8f883a74066ae4185b (diff) | |
download | gdb-81d54bb7aec30fa09ee564c9a51765dc7c019799.zip gdb-81d54bb7aec30fa09ee564c9a51765dc7c019799.tar.gz gdb-81d54bb7aec30fa09ee564c9a51765dc7c019799.tar.bz2 |
Add support for Intel TDX instructions.
gas/
* NEWS: Add TDX.
* config/tc-i386.c (cpu_arch): Add .tdx.
(cpu_noarch): Likewise.
* doc/c-i386.texi: Document tdx.
* testsuite/gas/i386/i386.exp: Run tdx tests.
* testsuite/gas/i386/tdx.d: Likewise.
* testsuite/gas/i386/tdx.s: Likewise.
* testsuite/gas/i386/x86-64-tdx.d: Likewise.
* testsuite/gas/i386/x86-64-tdx.s: Likewise.
opcodes/
* i386-dis.c (enum): Add PREFIX_0F01_REG_1_RM_5,
PREFIX_0F01_REG_1_RM_6, PREFIX_0F01_REG_1_RM_7,
X86_64_0F01_REG_1_RM_5_P_2, X86_64_0F01_REG_1_RM_6_P_2,
X86_64_0F01_REG_1_RM_7_P_2.
(prefix_table): Likewise.
(x86_64_table): Likewise.
(rm_table): Likewise.
* i386-gen.c (cpu_flag_init): Add CPU_TDX_FLAGS
and CPU_ANY_TDX_FLAGS.
(cpu_flags): Add CpuTDX.
* i386-opc.h (enum): Add CpuTDX.
(i386_cpu_flags): Add cputdx.
* i386-opc.tbl: Add TDX insns.
* i386-init.h: Regenerate.
* i386-tbl.h: Likewise.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 4c68cb7..7e8947d 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -210,6 +210,8 @@ enum CpuAVX512_BF16, /* Intel AVX-512 VP2INTERSECT Instructions support required. */ CpuAVX512_VP2INTERSECT, + /* TDX Instructions support required. */ + CpuTDX, /* mwaitx instruction required */ CpuMWAITX, /* Clzero instruction required */ @@ -375,6 +377,7 @@ typedef union i386_cpu_flags unsigned int cpuavx512_bitalg:1; unsigned int cpuavx512_bf16:1; unsigned int cpuavx512_vp2intersect:1; + unsigned int cputdx:1; unsigned int cpumwaitx:1; unsigned int cpuclzero:1; unsigned int cpuospke:1; |