docs(debt): note the call sites of sceAgcCbMemsetExclusive in six titles #11169

Merged
xXPBSXx merged 1 commit from upstream-pr/11169 into main 2026-10-27 03:51:46 +00:00
xXPBSXx commented 2026-10-25 20:26:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-25T20:26:16Z.


What

The entry then reads (the new part is its last three sentences):

sceAgcAcquireMemSetEngine, sceAgcCbMemsetExclusive (libSceAgc) - declared with canonical signatures from decrypted headers; behavior on retail consoles remains unmeasured. Both throw through NotImplemented_nid_no_patch. Six title binaries import sceAgcCbMemsetExclusive through a jump stub and call that stub at 12 sites (PPSA15246 0x6dcaf8, 0x6dd029; PPSA21480 0xc9e51, 0xca369; PPSA23827 0x54e5f0, 0x54eb51; PPSA24423 0x41768, 0x41c89; PPSA24779 0xc23f78, 0xc24499; PPSA35169 0x6eef90, 0x6ef4f1). At four sites read in the listing (PPSA21480 0xc9e51 and 0xca369, PPSA24423 0x41768, PPSA35169 0x6eef90) when the call returns 0, the calling function returns 0x8a6c002b instead of aborting, and at 0x41768 the call is made only for a flag byte of 1 and a size of at least 0x40000. Whether a title reaches these calls was not measured.

Changed: docs/dev/debt/libSceAgc.md, one existing entry extended. No code change.

Method: Ghidra 12.1.4 headless on the unwrapped executables of the titles named; the addresses are the call sites in those executables as Ghidra maps them, read from the instruction listing (static reading only, nothing run on a console). Each statement was checked in two independent readings; statements only one reading covered were left out. The listings and decompiled code are game code and are not attached.

Overlap: #11012 (open) records other evidence for sceAgcCbMemsetExclusive in the same file; git merge-tree of the two heads is clean, so no landing order is needed.

Fixes: #11168

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes; git merge-tree against current main 74a55da254 is clean. Not built, not run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes #11168
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5008365220 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11169). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-25T20:26:16Z. --- ### What The entry then reads (the new part is its last three sentences): > [sceAgcAcquireMemSetEngine, sceAgcCbMemsetExclusive](../../../core/libs/prx/libSceAgc/Unimplemented.cpp) (libSceAgc) - declared with canonical signatures from decrypted headers; behavior on retail consoles remains unmeasured. Both throw through `NotImplemented_nid_no_patch`. Six title binaries import `sceAgcCbMemsetExclusive` through a jump stub and call that stub at 12 sites (PPSA15246 0x6dcaf8, 0x6dd029; PPSA21480 0xc9e51, 0xca369; PPSA23827 0x54e5f0, 0x54eb51; PPSA24423 0x41768, 0x41c89; PPSA24779 0xc23f78, 0xc24499; PPSA35169 0x6eef90, 0x6ef4f1). At four sites read in the listing (PPSA21480 0xc9e51 and 0xca369, PPSA24423 0x41768, PPSA35169 0x6eef90) when the call returns 0, the calling function returns 0x8a6c002b instead of aborting, and at 0x41768 the call is made only for a flag byte of 1 and a size of at least 0x40000. Whether a title reaches these calls was not measured. Changed: `docs/dev/debt/libSceAgc.md`, one existing entry extended. No code change. Method: Ghidra 12.1.4 headless on the unwrapped executables of the titles named; the addresses are the call sites in those executables as Ghidra maps them, read from the instruction listing (static reading only, nothing run on a console). Each statement was checked in two independent readings; statements only one reading covered were left out. The listings and decompiled code are game code and are not attached. Overlap: #11012 (open) records other evidence for `sceAgcCbMemsetExclusive` in the same file; `git merge-tree` of the two heads is clean, so no landing order is needed. Fixes: #11168 ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes; `git merge-tree` against current `main` `74a55da254` is clean. Not built, not run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes #11168 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-25 20:27:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T20:27:30Z.

Review: COMMENTED


Reviewed head 9e076485b20a9ce89579c9ae29c12db7cb1cd743. I confirmed sceAgcCbMemsetExclusive maps to NID 6nths4DHNrs and remains a NotImplemented_nid_no_patch stub; the debt edit merges cleanly with current main and with #11012, whose PPSA20397 import-thunk observation is distinct from these six titles. Local conventions and git diff --check pass; eligibility, intake, labels and conventions checks are green. The six-title call-site and return-path readings remain author-provided static Ghidra evidence; I did not independently inspect the binaries or run these paths on a console, so I am recording a comment rather than an approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645077378 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11169#pullrequestreview-5645077378). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T20:27:30Z. **Review:** COMMENTED --- Reviewed head `9e076485b20a9ce89579c9ae29c12db7cb1cd743`. I confirmed `sceAgcCbMemsetExclusive` maps to NID `6nths4DHNrs` and remains a `NotImplemented_nid_no_patch` stub; the debt edit merges cleanly with current `main` and with #11012, whose PPSA20397 import-thunk observation is distinct from these six titles. Local conventions and `git diff --check` pass; eligibility, intake, labels and conventions checks are green. The six-title call-site and return-path readings remain author-provided static Ghidra evidence; I did not independently inspect the binaries or run these paths on a console, so I am recording a comment rather than an approval.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11169
No description provided.