diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-02-19 19:10:22 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-02-19 19:10:22 +0000 |
commit | 0acbbfdf635dbec05e6064246f07528b182b9974 (patch) | |
tree | fbdf7806648059033a922a1302955b22bd0ae842 /opcodes/i386-gen.c | |
parent | 45dec86255e1f8d8fb5cb6cf344050c4ca702273 (diff) | |
download | binutils-redhat-0acbbfdf635dbec05e6064246f07528b182b9974.tar.gz |
Implement Intel SMAP instructions
gas/
PR gas/15159
* config/tc-i386.c (cpu_arch): Add ".smap".
* doc/c-i386.texi: Document smap.
gas/testsuite/
PR gas/15159
* gas/i386/i386.exp: Run smap and x86-64-smap.
* gas/i386/smap.d: New file.
* gas/i386/smap.s: likewise.
* gas/i386/x86-64-smap.d: likewise.
opcodes/
PR gas/15159
* i386-dis.c (rm_table): Add clac and stac to RM_0F01_REG_1.
* i386-gen.c (cpu_flag_init): Add CPU_SMAP_FLAGS.
(cpu_flags): Add CpuSMAP.
* i386-opc.h (CpuSMAP): New.
(i386_cpu_flags): Add cpusmap.
* i386-opc.tbl: Add clac and stac.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r-- | opcodes/i386-gen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 7f66a1e261..3e7481b4d9 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -206,6 +206,8 @@ static initializer cpu_flag_init[] = "CpuRdSeed" }, { "CPU_PRFCHW_FLAGS", "CpuPRFCHW" }, + { "CPU_SMAP_FLAGS", + "CpuSMAP" }, }; static initializer operand_type_init[] = @@ -379,6 +381,7 @@ static bitfield cpu_flags[] = BITFIELD (CpuRDSEED), BITFIELD (CpuADX), BITFIELD (CpuPRFCHW), + BITFIELD (CpuSMAP), BITFIELD (Cpu64), BITFIELD (CpuNo64), #ifdef CpuUnused |