Add support to show the symbolic names of the MIPS CP1 registers.
authorAndrew Bennett <andrew.bennett@imgtec.com>
Mon, 16 Dec 2013 16:39:47 +0000 (16:39 +0000)
committerAndrew Bennett <andrew.bennett@imgtec.com>
Mon, 16 Dec 2013 17:09:58 +0000 (17:09 +0000)
commitdc76d75756a47325f5233ff684b05d6c0846e86a
treeb90a8c041e5b9f8b07abbc5580efedae8492d3f8
parent1a1fb62757c74f74a1e46afc207fc46fce1cea00
Add support to show the symbolic names of the MIPS CP1 registers.

2013-12-16  Andrew Bennett  <andrew.bennett@imgtec.com>

gas/testsuite/gas/mips/
* mips.exp: Add CP1 register name tests.
* cp1-names-mips32.d: New test.
* cp1-names-mips32r2.d: New test.
* cp1-names-mips64.d: New test.
* cp1-names-mips64r2.d: New test.
* cp1-names-numeric.d: New test.
* cp1-names-r3000.d: New test.
* cp1-names-r4000.d: New test.
* cp1-names-sb1.d: New test.
* cp1-names.s: New test.
* micromips-insn32.d: Add the correct symbolic names for the CP1
registers.
* micromips-noinsn32.d: Likewise.
* micromips-trap.d: Likewise.
* micromips.d: Likewise.

opcodes/
* mips-dis.c: Add mips_cp1_names pointer.
(mips_cp1_names_numeric): New array.
(mips_cp1_names_mips3264): New array.
(mips_arch_choice): Add cp1_names.
(mips_arch_choices): Add relevant cp1 register name array to each of
the elements.
(set_default_mips_dis_options): Add support for setting up the
mips_cp1_names pointer.
(parse_mips_dis_option): Add support for the cp1-names command line
variable.  Also setup the mips_cp1_names pointer.
(print_reg): Print out name of the cp1 register.
17 files changed:
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/cp1-names-mips32.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names-mips32r2.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names-mips64.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names-mips64r2.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names-numeric.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names-r3000.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names-r4000.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names-sb1.d [new file with mode: 0644]
gas/testsuite/gas/mips/cp1-names.s [new file with mode: 0644]
gas/testsuite/gas/mips/micromips-insn32.d
gas/testsuite/gas/mips/micromips-noinsn32.d
gas/testsuite/gas/mips/micromips-trap.d
gas/testsuite/gas/mips/micromips.d
gas/testsuite/gas/mips/mips.exp
opcodes/ChangeLog
opcodes/mips-dis.c
This page took 0.027778 seconds and 4 git commands to generate.