diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-07-25 16:16:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-07-25 16:16:35 +0000 |
commit | a00464085799717f03cfee95a3de4d4f0fd58c64 (patch) | |
tree | c98872e0f1c99fb02a9076858a0f320057e7fbcb /opcodes/i386-opc.h | |
parent | c623f86cd297d3758aa49ed971d50045f0ab2fc6 (diff) | |
download | gdb-a00464085799717f03cfee95a3de4d4f0fd58c64.zip gdb-a00464085799717f03cfee95a3de4d4f0fd58c64.tar.gz gdb-a00464085799717f03cfee95a3de4d4f0fd58c64.tar.bz2 |
Support Intel SHA
gas/
2013-07-25 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* config/tc-i386.c (cpu_arch): Add .sha.
* doc/c-i386.texi: Document sha/.sha.
gas/testsuite/
2013-07-25 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* gas/i386/sha.d: New.
* gas/i386/sha.s: New.
* gas/i386/x86-64-sha.d: New.
* gas/i386/x86-64-sha.s: New.
* gas/i386/i386.exp: Run new SHA tests.
opcodes/
2013-07-25 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* i386-dis.c (PREFIX enum): Add PREFIX_0F38C8, PREFIX_0F38C9,
PREFIX_0F38CA, PREFIX_0F38CB, PREFIX_0F38CC, PREFIX_0F38CD,
PREFIX_0F3ACC.
(prefix_table): Updated.
(three_byte_table): Likewise.
* i386-gen.c (cpu_flag_init): Add CPU_SHA_FLAGS.
(cpu_flags): Add CpuSHA.
(i386_cpu_flags): Add cpusha.
* i386-init.h: Regenerate.
* i386-opc.h (CpuSHA): New.
(CpuUnused): Restored.
(i386_cpu_flags): Add cpusha.
* i386-opc.tbl: Add SHA instructions.
* i386-tbl.h: Regenerate.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index ef656a4..b5eb333 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -156,6 +156,8 @@ enum CpuPRFCHW, /* SMAP instructions required. */ CpuSMAP, + /* SHA instructions required. */ + CpuSHA, /* 64bit support required */ Cpu64, /* Not supported in the 64bit mode */ @@ -171,7 +173,7 @@ enum /* If you get a compiler error for zero width of the unused field, comment it out. */ -/* #define CpuUnused (CpuMax + 1) */ +#define CpuUnused (CpuMax + 1) /* We can check if an instruction is available with array instead of bitfield. */ @@ -241,6 +243,7 @@ typedef union i386_cpu_flags unsigned int cpuadx:1; unsigned int cpuprfchw:1; unsigned int cpusmap:1; + unsigned int cpusha:1; unsigned int cpu64:1; unsigned int cpuno64:1; #ifdef CpuUnused |