Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes disassembly and pcode for instructions which read gp
For instructions which read C11 aka the gp register, such as L2_loadrubgp, gp should only be consulted if an immext was *not* applied. For example, immext is applied below so the memref is not gp-rel: { immext(##0x123440) R0 = memw(#0+##0x123450) jumpr R31 } But this is gp-rel: { R0 = memw(GP+##0x10) jumpr R31 } Fixes this issue by adding a "gp" sleigh constructor that's conditional on the immext context reg, and adds C11 or 0 as an operand based on the above Fixes #5
- Loading branch information
1 parent
e68bb25
commit 29c57b5
Showing
2 changed files
with
117 additions
and
31 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