diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-08-28 21:42:16 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-08-28 21:42:16 +0000 |
commit | 3632d14b135c61bbc859070012cc7515da182ef6 (patch) | |
tree | b83f520f7f1fc6f768dc3152ccb8572952a7105f /gas/config | |
parent | 4a76eae5946577891a09412077a5bbd3ea532885 (diff) | |
download | gdb-3632d14b135c61bbc859070012cc7515da182ef6.zip gdb-3632d14b135c61bbc859070012cc7515da182ef6.tar.gz gdb-3632d14b135c61bbc859070012cc7515da182ef6.tar.bz2 |
gas/
2009-08-28 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (cpu_arch): Use PROCESSOR_L1OM on "l1om".
(i386_align_code): Handle PROCESSOR_L1OM.
(check_cpu_arch_compatible): Fix a typo in comments.
(set_cpu_arch): Check cpu_arch_isa instead of
cpu_arch_isa_flags.bitfield.cpul1om.
(i386_mach): Likewise.
(i386_target_format): Likewise.
* config/tc-i386.h (processor_type): Add PROCESSOR_L1OM.
gas/testsuite/
2009-08-28 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/l1om.d: Check elf64-l1om format.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 12 | ||||
-rw-r--r-- | gas/config/tc-i386.h | 1 |
2 files changed, 8 insertions, 5 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 86e55bf..2b614b0 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -577,7 +577,7 @@ static const arch_entry cpu_arch[] = CPU_CORE2_FLAGS }, { "corei7", PROCESSOR_COREI7, CPU_COREI7_FLAGS }, - { "l1om", PROCESSOR_GENERIC64, + { "l1om", PROCESSOR_L1OM, CPU_L1OM_FLAGS }, { "k6", PROCESSOR_K6, CPU_K6_FLAGS }, @@ -995,6 +995,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_CORE: case PROCESSOR_CORE2: case PROCESSOR_COREI7: + case PROCESSOR_L1OM: case PROCESSOR_GENERIC64: patt = alt_long_patt; break; @@ -1043,6 +1044,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_CORE: case PROCESSOR_CORE2: case PROCESSOR_COREI7: + case PROCESSOR_L1OM: if (fragP->tc_frag_data.isa_flags.bitfield.cpui686) patt = alt_long_patt; else @@ -1977,7 +1979,7 @@ check_cpu_arch_compatible (const char *name ATTRIBUTE_UNUSED, arch = default_arch; } - /* If we are targeting Intel L1OM, wm must enable it. */ + /* If we are targeting Intel L1OM, we must enable it. */ if (get_elf_backend_data (stdoutput)->elf_machine_code != EM_L1OM || new.bitfield.cpul1om) return; @@ -2085,7 +2087,7 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED) enum bfd_architecture i386_arch (void) { - if (cpu_arch_isa_flags.bitfield.cpul1om) + if (cpu_arch_isa == PROCESSOR_L1OM) { if (OUTPUT_FLAVOR != bfd_target_elf_flavour || flag_code != CODE_64BIT) @@ -2101,7 +2103,7 @@ i386_mach () { if (!strcmp (default_arch, "x86_64")) { - if (cpu_arch_isa_flags.bitfield.cpul1om) + if (cpu_arch_isa == PROCESSOR_L1OM) { if (OUTPUT_FLAVOR != bfd_target_elf_flavour) as_fatal (_("Intel L1OM is 64bit ELF only")); @@ -8102,7 +8104,7 @@ i386_target_format (void) object_64bit = 1; use_rela_relocations = 1; } - if (cpu_arch_isa_flags.bitfield.cpul1om) + if (cpu_arch_isa == PROCESSOR_L1OM) { if (flag_code != CODE_64BIT) as_fatal (_("Intel L1OM is 64bit only")); diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 3d89a32..d10df53 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -215,6 +215,7 @@ enum processor_type PROCESSOR_CORE, PROCESSOR_CORE2, PROCESSOR_COREI7, + PROCESSOR_L1OM, PROCESSOR_K6, PROCESSOR_ATHLON, PROCESSOR_K8, |