MIPS: Add support for the m6201 architecture
Adds support for the M6201 processor core, a MIPS32 Release 6 implementation.
This commit introduces support for the M6201 processor core, which is part of the M6200 family and implements the MIPS32 Release 6 Architecture along with the MCU ASE. The changes include adding the m6201 entry to the mips_cpu_info_table in gas/config/tc-mips.c, updating documentation in gas/doc/c-mips.texi, and adding a new test case elf_mach_m6201.d to the gas testsuite. The patch was reviewed and committed with minor fixes for formatting and naming.
- proposer
Submitted a patch to add support for the M6201 processor core.
“Add support for the M6201 processor core, a member of the M6200 family implementing the MIPS32 Release 6 Architecture along with the MCU ASE. gas/ * config/tc-mips.c (mips_cpu_info_table): Add m6201. * doc/c-mips.texi: Add documentation for m6201. gas/testsuite/ * gas/mips/elf_mach_m6201.d: New test. * gas/mips/mips.exp: Run the new test. Co-authored by: Faraz Shahbazker <fshahbazker@wavec…”
- reviewer
Requested a commit description and pointed out minor formatting issues in the patch.
“Missing commit description. Missing full stop and a second space. I don't like that the new test is missing the "m" prefix from the core name.”
- maintainer
Applied the patch with minor corrections, noting the addressed issues.
“Since these issues were straightforward to address I went ahead and committed this change as quoted. Thank you for your contribution.”
Technical Tradeoffs
- Requires minor fixes to commit message formatting and test case naming before being committed.
In Details
This change extends the gas assembler's MIPS backend to recognize and support the M6201 processor core. This core is part of the M6200 family, implements the MIPS32 Release 6 ISA, and includes the MCU ASE. The patch adds a new CPU entry to mips_cpu_info_table, updates the documentation, and introduces a test case to verify the assembler's behavior for this new architecture.
- MIPS
- A Reduced Instruction Set Computing (RISC) architecture, commonly used in embedded systems and historically in workstations.
- MIPS32 Release 6
- A specific revision of the MIPS32 architecture, defining the instruction set and features for 32-bit MIPS processors.
- MCU ASE
- Application Specific Extension for Microcontroller. A set of instructions tailored for microcontroller applications.
- gas
- The GNU Assembler, part of the GNU Binutils package.
- assembler
- A program that translates assembly language code into machine code.
- MIPS CPU info table
- A data structure within the MIPS assembler that maps CPU names to their architectural features and instruction sets.
- testsuite
- A collection of tests designed to verify the correctness of a software component.