diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-01-09 20:32:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-01-09 20:32:32 +0000 |
commit | 1b7f3fb0dd0c5dd226e0a54c84cbf4c002738835 (patch) | |
tree | 8425d786229d4c537d6853fed32ffc6d764b2178 /opcodes/i386-gen.c | |
parent | 1cb0a7674666a4beff8f5f76f4392051ea649a82 (diff) | |
download | gdb-1b7f3fb0dd0c5dd226e0a54c84cbf4c002738835.zip gdb-1b7f3fb0dd0c5dd226e0a54c84cbf4c002738835.tar.gz gdb-1b7f3fb0dd0c5dd226e0a54c84cbf4c002738835.tar.bz2 |
gas/
2009-01-09 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (cpu_arch): Add .rdtscp.
(md_show_usage): Display rdtscp.
* doc/c-i386.texi: Document rdtscp.
gas/testsuite/
2009-01-09 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/arch-10.s: Add rdtscp.
* gas/i386/x86-64-arch-2.s: Likewise.
* gas/i386/arch-10.d: Updated.
* gas/i386/arch-10-1.l: Likewise.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.
opcodes/
2009-01-09 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (cpu_flag_init): Add CpuRdtscp to CPU_K8_FLAGS
and CPU_AMDFAM10_FLAGS. Add CPU_RDTSCP_FLAGS.
(cpu_flags): Add CpuRdtscp.
(set_bitfield): Remove CpuSledgehammer check.
* i386-opc.h (CpuRdtscp): New.
(CpuLM): Updated.
(i386_cpu_flags): Add cpurdtscp.
* i386-opc.tbl: Replace CpuSledgehammer with CpuRdtscp.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r-- | opcodes/i386-gen.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index e835985..b0fe00d 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -81,9 +81,9 @@ static initializer cpu_flag_init [] = { "CPU_ATHLON_FLAGS", "Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuK6|CpuMMX|Cpu3dnow|Cpu3dnowA" }, { "CPU_K8_FLAGS", - "Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuK6|CpuK8|CpuMMX|Cpu3dnow|Cpu3dnowA|CpuSSE|CpuSSE2|CpuLM" }, + "Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuK6|CpuK8|CpuMMX|Cpu3dnow|Cpu3dnowA|CpuSSE|CpuSSE2|CpuRdtscp|CpuLM" }, { "CPU_AMDFAM10_FLAGS", - "Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuK6|CpuK8|CpuMMX|Cpu3dnow|Cpu3dnowA|CpuSSE|CpuSSE2|CpuSSE3|CpuSSE4a|CpuABM|CpuLM" }, + "Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuK6|CpuK8|CpuMMX|Cpu3dnow|Cpu3dnowA|CpuSSE|CpuSSE2|CpuSSE3|CpuSSE4a|CpuABM|CpuRdtscp|CpuLM" }, { "CPU_MMX_FLAGS", "CpuMMX" }, { "CPU_SSE_FLAGS", @@ -112,6 +112,8 @@ static initializer cpu_flag_init [] = "CpuMMX|CpuSSE|CpuSSE2|CpuSSE3|CpuSSSE3|CpuSSE4_1|CpuSSE4_2|CpuAVX|CpuFMA" }, { "CPU_MOVBE_FLAGS", "CpuMovbe" }, + { "CPU_RDTSCP_FLAGS", + "CpuRdtscp" }, { "CPU_EPT_FLAGS", "CpuEPT" }, { "CPU_3DNOW_FLAGS", @@ -274,6 +276,7 @@ static bitfield cpu_flags[] = BITFIELD (CpuLM), BITFIELD (CpuMovbe), BITFIELD (CpuEPT), + BITFIELD (CpuRdtscp), BITFIELD (Cpu64), BITFIELD (CpuNo64), #ifdef CpuUnused @@ -500,9 +503,7 @@ set_bitfield (const char *f, bitfield *array, unsigned int size) { unsigned int i; - if (strcmp (f, "CpuSledgehammer") == 0) - f= "CpuK8"; - else if (strcmp (f, "Mmword") == 0) + if (strcmp (f, "Mmword") == 0) f= "Qword"; else if (strcmp (f, "Oword") == 0) f= "Xmmword"; |