feat(libSceAgc): implement sceAgcDebugRaiseException #3448
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3448"
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 Feuris on 2026-10-11T10:50:40Z.
What
Carries @screamm's #3360 (the author is under the intake threshold). The commit is theirs, unchanged (
9bec1907).sceAgcDebugRaiseException(libSceAgc, NIDT6xuVw0KUJo) is aNotImplemented_nid_no_patchstub. Palworld (PPSA23126, #2598) and 007 First Light (PPSA11386, #2523) import it.Misc/src/Debug.cpp:int sceAgcDebugRaiseException(std::uint32_t exceptionId)logs the exception id withAPS5_LOG_OUTand returns 0, the behaviour of retail hardware per OpenAGCgame_compat.c(dev kits trap withud2, which is not reproduced), matching the modelsceKernelDebugRaiseExceptionin libkernel already follows.uint32_targument follows KytyPS5's signature. The design decisions and sources are recorded in TechnicalDebt.Unimplemented.cpp: the old stub is removed.agc_commands(Commands.cpp): gainstestDebugRaiseExceptiontesting thatsceAgcDebugRaiseException(0x1234abcdu)returns 0 and does not throw.Closes #3360.
Tested
tools/check_conventions.py --base origin/mainandgit diff --checkpass cleanly.agc_initializationandagc_commands3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"513/513 pass. Withmain'sUnimplemented.cppthe new test fails.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T10:51:07Z.
Progress report (
9a9bd3f→9bec190)📈 System libraries: 85.77% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceAgcDebugRaiseExceptionImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T11:00:40Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgc/tests/Commands.cppL38core/libs/prx/libSceAgc/tests/Commands.cppL38Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T11:43:51Z.
Checked the build and ctest of libSceAgc (20/20,
agc_commandspasses), conventions, and the TechnicalDebt entry against OpenAGC/KytyPS5; the new test cannot build without the change. Merging.