This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] MIPS: MCU ASE support
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>
- Cc: binutils at sourceware dot org, Chao-ying Fu <fu at mips dot com>, Rich Fuhler <rich at mips dot com>, David Lau <davidlau at mips dot com>, Kevin Mills <kevinm at mips dot com>, Ilie Garbacea <ilie at mips dot com>, Catherine Moore <clm at codesourcery dot com>, Nathan Sidwell <nathan at codesourcery dot com>, Joseph Myers <joseph at codesourcery dot com>
- Date: Sun, 07 Aug 2011 10:09:24 +0100
- Subject: Re: [PATCH] MIPS: MCU ASE support
- References: <alpine.DEB.1.10.1108031358340.4083@tp.orcam.me.uk>
"Maciej W. Rozycki" <macro@codesourcery.com> writes:
> gas/
> 2011-08-03 Chao-ying Fu <fu@mips.com>
> Maciej W. Rozycki <macro@codesourcery.com>
>
> * config/tc-mips.c (mips_set_options): Add ase_mcu.
> (mips_opts): Initialise ase_mcu to -1.
> (ISA_SUPPORTS_MCU_ASE): New macro.
> (MIPS_CPU_ASE_MCU): Likewise.
> (is_opcode_valid): Handle MCU.
> (macro_build, macro): Likewise.
> (validate_mips_insn, validate_micromips_insn): Likewise.
> (mips_ip): Likewise.
> (options): Add OPTION_MCU and OPTION_NO_MCU.
> (md_longopts): Add mmcu and mno-mcu.
> (md_parse_option): Handle OPTION_MCU and OPTION_NO_MCU.
> (mips_after_parse_args): Handle MCU.
> (s_mipsset): Likewise.
> (md_show_usage): Handle MCU options.
>
> * doc/as.texinfo: Document -mmcu and -mno-mcu options.
> * doc/c-mips.texi: Likewise, and document ".set mcu" and
> ".set nomcu" directives.
>
> gas/testsuite/
> 2011-08-03 Maciej W. Rozycki <macro@codesourcery.com>
> Chao-ying Fu <fu@mips.com>
>
> * gas/mips/micromips@mcu.d: New test.
> * gas/mips/mcu.d: Likewise.
> * gas/mips/mcu.s: New test source.
> * gas/mips/mips.exp: Run the new tests.
>
> include/opcode/
> 2011-08-03 Chao-ying Fu <fu@mips.com>
> Maciej W. Rozycki <macro@codesourcery.com>
>
> * mips.h (OP_MASK_3BITPOS, OP_SH_3BITPOS): New macros.
> (OP_MASK_OFFSET12, OP_SH_OFFSET12): Redefine.
> (INSN_ASE_MASK): Add the MCU bit.
> (INSN_MCU): New macro.
> (M_ACLR_AB, M_ACLR_OB, M_ASET_AB, M_ASET_OB): New enum values.
> (MICROMIPSOP_MASK_3BITPOS, MICROMIPSOP_SH_3BITPOS): New macros.
>
> opcodes/
> 2011-08-03 Chao-ying Fu <fu@mips.com>
> Maciej W. Rozycki <macro@codesourcery.com>
>
> * mips-dis.c (mips_arch_choices): Enable MCU for "mips32r2"
> and "mips64r2".
> (print_insn_args, print_insn_micromips): Handle MCU.
> * micromips-opc.c (MC): New macro.
> (micromips_opcodes): Add "aclr", "aset" and "iret".
> * mips-opc.c (MC): New macro.
> (mips_builtin_opcodes): Add "aclr", "aset" and "iret".
OK, thanks.
Richard