summaryrefslogtreecommitdiff
path: root/opcodes/i386-opc.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-08-06 18:22:49 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-08-06 18:22:49 +0000
commit6eee9f41a7a082b8ac53c0f85167e3a67d5c1556 (patch)
tree5a4f7fb668ee508ebe7e3813eede991086b5d934 /opcodes/i386-opc.h
parent5990e07eee5e396c9d1a6821c0fe9aaefdfbe2f0 (diff)
downloadgdb-6eee9f41a7a082b8ac53c0f85167e3a67d5c1556.tar.gz
Don't generate multi-byte NOPs for i686.
gas/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * config/tc-i386.c (arch_entry): Add negated bit to disambiguate flag names starting with "no". (cpu_arch): Add negated bit definitions. Add ".nop" CPU extension. (i386_align_code): Use new .cpunop bit to decide when to generate alignment using nops. (set_cpu_arch): Use negated bit instead to decide when to use cpu_flags or vs. cpu_flags_and_not. (md_parse_option): Likewise. gas/testsuite/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * gas/i386/arch-10-1.l: Add nopl instruction. * gas/i386/arch-10-2.l: Likewise. * gas/i386/arch-10-3.l: Likewise. * gas/i386/arch-10-4.l: Likewise. * gas/i386/arch-10.s: Likewise. * gas/i386/arch-10.d: Add nopl instruction, and +nopl extension flag to as flags. * gas/i386/nops-5-i686.d: Change alignment code generated for -mtune=i686. * gas/i386/nops-5.d: Change alignment code generated for .arch i686. * gas/i386/x86-64-nops-5-k8.d: Likewise. * gas/i386/x86-64-nops-5.d: Likewise. opcodes/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * i386-gen.c (cpu_flag_init): Define CpuNop extension flag, add to processor flags for PENTIUMPRO processors and later. * i386-opc.h (enum): Add CpuNop. (i386_cpu_flags): Add cpunop bit. * i386-opc.tbl: Change nop cpu_flags. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r--opcodes/i386-opc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index 5477c3856ef..239f9de54d0 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -46,6 +46,8 @@ enum
Cpu686,
/* CLFLUSH Instruction support required */
CpuClflush,
+ /* NOP Instruction support required */
+ CpuNop,
/* SYSCALL Instructions support required */
CpuSYSCALL,
/* Floating point support required */
@@ -152,6 +154,7 @@ typedef union i386_cpu_flags
unsigned int cpui586:1;
unsigned int cpui686:1;
unsigned int cpuclflush:1;
+ unsigned int cpunop:1;
unsigned int cpusyscall:1;
unsigned int cpu8087:1;
unsigned int cpu287:1;