feat(relinker): lower register-form EXTRQ and relocate following instructions for short sites #54
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/54"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-09-28T03:37:37Z.
What
Addresses an item from
docs/TechnicalDebt.md:--to-intelfailed the relink on register-form EXTRQ (66 0F 79), which is 4 or 5 bytes and too short for a jump to a stub. A retail title hits this. With this change all 97 of its AMD-only instructions are lowered (94 through stubs).How
src >> 8 & 63), the other(64 - length) & 63(lengthmasked to 6 bits, so 0 means 64). The destination is shifted right by the index, then left and right by the complement, which keeps the lowlengthbits. INSERTQ register form is still reported as unsupported.jmp rel32, the converter extends it over the instructions that follow it until it's 5 bytes long:MatchSequence;LowerOutOfLine's newtrailingbytes), but only if they're sequential, have no RIP-relative operand and no branch target;docs/TechnicalDebt.mdnow lists only the INSERTQ register form, MONITORX/MWAITX/CLZERO/RDPRU/MCOMMIT and SHA-NI.Testing
amd64_only_converter:ret. When anopfollows instead, the site grows to 5 bytes and thenopruns before the return jump.