frank.py update

should help with sdk stuff

Former-commit-id: 15f13178f8
This commit is contained in:
EpochFlame 2023-02-04 02:04:04 -05:00 committed by GitHub
parent 17148384f2
commit 4096e66d81
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ while idx < len(profile_bytes) - 16:
LMW = 0xB8 >> 2
FDIVS = 0xEC >> 2
if opcode_a == LWZ and \
# Adjust LWZ and LMW loading from r1.
if opcode_a in [LWZ, LMW] and vanilla_inst_a[2] == 0x00 and \
opcode_b in [LI, LFS, FDIVS] and \
vanilla_inst_a == profile_inst_b and \
vanilla_inst_b == profile_inst_a and \