-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the MIPS eXtended Physical Address (XPA) ASE.
ChangeLog: binutils/ * doc/binutils.texi: Document the disassemble MIPS XPA instructions command line option. gas/ * config/tc-mips.c (options): Add OPTION_XPA and OPTION_NO_XPA. (md_longopts): Add xpa and no-xpa command line options. (mips_ases): Add MIPS XPA ASE. (mips_cpu_info_table): Update p5600 entry to allow the XPA ASE. * doc/as.texinfo: Document the MIPS XPA command line options. * doc/c-mips.texi: Document the MIPS XPA command line options, and assembler directives. gas/testsuite/ * gas/mips/mips.exp: Add xpa tests. * gas/mips/xpa.s: New test. * gas/mips/xpa.d: Likewise. include/ * opcode/mips.h (ASE_XPA): New define. opcodes/ * mips-dis.c (mips_arch_choices): Update mips32r2 and mips64r2 to allow the MIPS XPA ASE. (parse_mips_dis_option): Process the -Mxpa option. * mips-opc.c (XPA): New define. (mips_builtin_opcodes): Add MIPS XPA instructions and move the locations of the ctc0 and cfc0 instructions.
- Loading branch information
1 parent
cd0449a
commit 7d64c58
Showing
15 changed files
with
158 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#objdump: -dr --prefix-addresses --show-raw-insn -Mxpa,cp0-names=mips32r2 | ||
#name: XPA instructions | ||
#as: -32 -mxpa | ||
|
||
.*: +file format .*mips.* | ||
|
||
Disassembly of section \.text: | ||
[0-9a-f]+ <[^>]*> 40420800 mfhc0 v0,c0_random | ||
[0-9a-f]+ <[^>]*> 40428000 mfhc0 v0,c0_config | ||
[0-9a-f]+ <[^>]*> 40420002 mfhc0 v0,c0_mvpconf0 | ||
[0-9a-f]+ <[^>]*> 40420007 mfhc0 v0,\$0,7 | ||
[0-9a-f]+ <[^>]*> 40c20800 mthc0 v0,c0_random | ||
[0-9a-f]+ <[^>]*> 40c28000 mthc0 v0,c0_config | ||
[0-9a-f]+ <[^>]*> 40c20002 mthc0 v0,c0_mvpconf0 | ||
[0-9a-f]+ <[^>]*> 40c20007 mthc0 v0,\$0,7 | ||
[0-9a-f]+ <[^>]*> 40620c00 mfhgc0 v0,c0_random | ||
[0-9a-f]+ <[^>]*> 40628400 mfhgc0 v0,c0_config | ||
[0-9a-f]+ <[^>]*> 40620402 mfhgc0 v0,c0_mvpconf0 | ||
[0-9a-f]+ <[^>]*> 40620407 mfhgc0 v0,\$0,7 | ||
[0-9a-f]+ <[^>]*> 40620e00 mthgc0 v0,c0_random | ||
[0-9a-f]+ <[^>]*> 40628600 mthgc0 v0,c0_config | ||
[0-9a-f]+ <[^>]*> 40620602 mthgc0 v0,c0_mvpconf0 | ||
[0-9a-f]+ <[^>]*> 40620607 mthgc0 v0,\$0,7 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.text | ||
.set noat | ||
.set noreorder | ||
.set nomacro | ||
test_xpa: | ||
|
||
mfhc0 $2, $1 | ||
mfhc0 $2, $16 | ||
mfhc0 $2, $0, 2 | ||
mfhc0 $2, $0, 7 | ||
|
||
mthc0 $2, $1 | ||
mthc0 $2, $16 | ||
mthc0 $2, $0, 2 | ||
mthc0 $2, $0, 7 | ||
|
||
mfhgc0 $2, $1 | ||
mfhgc0 $2, $16 | ||
mfhgc0 $2, $0, 2 | ||
mfhgc0 $2, $0, 7 | ||
|
||
mthgc0 $2, $1 | ||
mthgc0 $2, $16 | ||
mthgc0 $2, $0, 2 | ||
mthgc0 $2, $0, 7 | ||
|
||
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... | ||
.align 2 | ||
.space 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters