mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-26 19:33:44 +08:00
Fix PPC STQ negative offsets
This commit is contained in:
@@ -1925,8 +1925,8 @@ define pcodeop stfdpOp;
|
||||
# binutils: power4.d: +58: f8 c7 ff f2 stq r6,-16\(r7\)
|
||||
# binutils: power4.d: +5c: f8 c7 80 02 stq r6,-32768\(r7\)
|
||||
# binutils: power4.d: +60: f8 c7 7f f2 stq r6,32752\(r7\)
|
||||
:stq RS,RA_OR_ZERO,DS is $(NOTVLE) & OP=62 & RS & Dp & RA_OR_ZERO & DS & BITS_0_1=2 & regp [regpset = Dp+1;] {
|
||||
ea:$(REGISTER_SIZE) = RA_OR_ZERO + sext(DS:2 << 2);
|
||||
:stq RS,dsPlusRaOrZeroAddress is $(NOTVLE) & OP=62 & RS & Dp & dsPlusRaOrZeroAddress & BITS_0_1=2 & regp [regpset = Dp+1;] {
|
||||
ea:$(REGISTER_SIZE) = dsPlusRaOrZeroAddress;
|
||||
@if ENDIAN == "big"
|
||||
*:$(REGISTER_SIZE) ea = RS;
|
||||
*:$(REGISTER_SIZE) (ea + $(REGISTER_SIZE)) = regp;
|
||||
|
||||
Reference in New Issue
Block a user