This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [updated patch] Making MIPS32 a real ISA, and ISA/CPU name cleanup.


Hi Chris,

: for bfd/ChangeLog:
: 
: 2000-10-16  Chris Demetriou  <cgd@sibyte.com>
: 
:         * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
:         bfd_mach_mips32_4k.  Update FIXME comment.
:         * archures.c (bfd_mach_mips32): New constant.
:         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
:         the latter, renumber it.
:         * bfd-in2.h (bfd_mach_mips32): New constant.
:         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
:         the latter, renumber it.
:         * cpu-mips.c (I_mips32): New constant.
:         (I_mips4K, I_mips32_4k): Rename the former to the latter.
:         (arch_info_struct): Add bfd_mach_mips32 entry, replace
:         bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
:         * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
:         (elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32
:         with E_MIPS_MACH_MIPS32_4K.
:         (_bfd_mips_elf_final_write_processing): Replace
:         bfd_mach_mips4K with bfd_mach_mips32_4k case, add
:         bfd_mach_mips32 case.
:         (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
:         comparison with support for MIPS32.
:         (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
:         MIPS32.
: 
: 
: for binutils/ChangeLog:
: 
: 2000-10-16  Chris Demetriou  <cgd@sibyte.com>
: 
:         * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
:         EF_MIPS_ARCH.  Replace use of E_MIPS_MACH_MIPS32 with
:         E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
: 
: 
: for gas/ChangeLog:
: 
: 2000-10-13  Chris Demetriou  <cgd@sibyte.com>
: 
:         * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
:         -1, and update comment.
:         (file_mips_isa): Likewise.
:         (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
:         (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
:         ISA_* constants rather than hard-coded numbers.
:         (mips_cpu_info): New structure.
:         (mips_cpu_info_table): New table describing CPU and ISA names
:         and numbers.
:         (mips_cpu_info_from_name, mips_cpu_info_from_isa,
:         mips_cpu_info_from_cpu): New functions.
:         (mips_isa_to_str): New function to get string for ISA name.
:         (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
:         return const char *.
:         (md_begin): Redo CPU and ISA selection logic, using
:         mips_cpu_info_from_*.  Convert to use ISA_* constants rather
:         than hard-coded numbers.
:         (append_insn, mips_emit_delays, macro, macro2): Convert to use
:         ISA_* constants rather than hard-coded numbers.
:         (mips_ip): Convert to use mips_isa_to_str to get ISA name.
:         (md_longopts): Delete OPTION_NO_MIPS32.
:         (md_parse_option): Convert to use ISA_* constants rather than
:         hard-coded numbers.  Make OPTIONS_MIPS32 case treat MIPS32
:         as an ISA.  Delete OPTION_NO_MIPS32 case.  Convert OPTION_MCPU
:         to use strcasecmp to recognize "default" and to use
:         mips_cpu_info_from_name to get CPU numbers from argument.
:         (md_show_usage): Move -mips32 so it's with the rest of the ISA
:         flags.  Change 4Kc, 4Kp and 4Km CPU entries to just be
:         mips32-4k.
:         (s_mipsset): Accept ISA value 32.
:         * doc/as.texinfo: Clean up MIPS options summary slightly,
:         remove -no-mips32.  Add note about -mips4 and -mips32
:         specifying those ISA levels.  Delete -mips32 and -no-mips32
:         cpu flag descriptions.
:         * doc/c-mips.texi: Add -mips32 to list of ISA switches.  Clean
:         up the supported CPU switch list, and replace 4Kc, 4Km, and
:         4Kp entries with a single mips32-4k entry.  Note that you can
:         use ".set mips32".
: 
: 
: for include/elf/ChangeLog:
: 
: 2000-10-16  Chris Demetriou  <cgd@sibyte.com>
: 
:         * mips.h (E_MIPS_ARCH_32): New constant.
:         (E_MIPS_MACH_MIPS32, E_MIPS_MACH_MIPS32_4K): Replace the
:         former with the latter. 
: 
: 
: for include/opcode/ChangeLog:
: 
: 2000-10-13  Chris Demetriou  <cgd@sibyte.com>
: 
:         * mips.h (INSN_ISA1, INSN_ISA2, INSN_ISA3, INSN_ISA4,
:         INSN_ISA5): Renumber, redefine to mean the ISA at which the
:         instruction was added.
:         (INSN_ISA32): New constant.
:         (INSN_4650, INSN_4010, INSN_4100, INSN_3900, INSN_GP32):
:         Renumber to avoid new and/or renumbered INSN_* constants.
:         (INSN_MIPS32): Delete.
:         (ISA_UNKNOWN): New constant to indicate unknown ISA.
:         (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4, ISA_MIPS5,
:         ISA_MIPS32): New constants, defined to be the mask of INSN_*
:         constants available at that ISA level. 
:         (CPU_UNKNOWN): New constant to indicate unknown CPU.
:         (CPU_4K, CPU_MIPS32_4K): Rename the former to the latter,
:         define it with a unique value.
:         (OPCODE_IS_MEMBER): Update for new ISA membership-related
:         constant meanings.
: 
: 
: for opcodes/ChangeLog:
: 
: 2000-10-13  Chris Demetriou  <cgd@sibyte.com>
: 
:         * mips-dis.c (set_mips_isa_type): Update to use
:         CPU_UNKNOWN and ISA_* constants.  Add bfd_mach_mips32 case.
:         Replace bfd_mach_mips4K with bfd_mach_mips32_4k case.
:         * mips-opc.c (I32): New constant for instructions added in
:         MIPS32.
:         (P4): Delete.
:         (mips_builtin_opcodes) Replace all uses of P4 with I32.

Approved and applied.

Cheers
	Nick

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]