aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-06-16 15:46:11 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-06-16 15:46:11 +0000
commit9103f4f44aefc60c4b0cc21f477bb567c2d2f2a1 (patch)
tree283386ea8d73e3116b7bdd57f090662b00f58f3b /gas/config/tc-i386.h
parent14e60db5bc5d53c7f7986e23c9a5bb4a140b341b (diff)
downloadgdb-9103f4f44aefc60c4b0cc21f477bb567c2d2f2a1.zip
gdb-9103f4f44aefc60c4b0cc21f477bb567c2d2f2a1.tar.gz
gdb-9103f4f44aefc60c4b0cc21f477bb567c2d2f2a1.tar.bz2
2006-06-16 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.h (processor_type): New. (arch_entry): Add type. * config/tc-i386.c (cpu_arch_tune): New. (cpu_arch_tune_flags): Likewise. (cpu_arch_isa_flags): Likewise. (cpu_arch): Updated. (set_cpu_arch): Also update cpu_arch_isa_flags. (md_assemble): Update cpu_arch_isa_flags. (OPTION_MARCH): New. (OPTION_MTUNE): Likewise. (md_longopts): Add -march= and -mtune=. (md_parse_option): Support -march= and -mtune=. (md_show_usage): Add -march=CPU/-mtune=CPU. (i386_target_format): Also update cpu_arch_isa_flags, cpu_arch_tune and cpu_arch_tune_flags. * doc/as.texinfo: Add -march=CPU/-mtune=CPU. * doc/c-i386.texi: Document -march=CPU/-mtune=CPU.
Diffstat (limited to 'gas/config/tc-i386.h')
-rw-r--r--gas/config/tc-i386.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h
index 312b8cd..c4661df 100644
--- a/gas/config/tc-i386.h
+++ b/gas/config/tc-i386.h
@@ -377,11 +377,29 @@ typedef struct
}
sib_byte;
-/* x86 arch names and features */
+enum processor_type
+{
+ PROCESSOR_UNKNOWN,
+ PROCESSOR_I486,
+ PROCESSOR_PENTIUM,
+ PROCESSOR_PENTIUMPRO,
+ PROCESSOR_PENTIUM4,
+ PROCESSOR_NOCONA,
+ PROCESSOR_YONAH,
+ PROCESSOR_MEROM,
+ PROCESSOR_K6,
+ PROCESSOR_ATHLON,
+ PROCESSOR_K8,
+ PROCESSOR_GENERIC32,
+ PROCESSOR_GENERIC64
+};
+
+/* x86 arch names, types and features */
typedef struct
{
- const char *name; /* arch name */
- unsigned int flags; /* cpu feature flags */
+ const char *name; /* arch name */
+ enum processor_type type; /* arch type */
+ unsigned int flags; /* cpu feature flags */
}
arch_entry;