libSceAgc: sceAgcDebugRaiseException is a stub (Palworld, 007 First Light import); fix branch ready #3360
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T08:51:28Z.
sceAgcDebugRaiseException(libSceAgc, NIDT6xuVw0KUJo) is aNotImplemented_nid_no_patchstub. Palworld (PPSA23126, #2598) and 007 First Light (PPSA11386, #2523) import it.Fix branch ready:
screamm:feat/agc-debug-raise-exception(a647ca55, one commit onmain7028457e). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. No earlier PR implemented it.Misc/src/Debug.cpp:int sceAgcDebugRaiseException(uint32_t exceptionId)logs the id withAPS5_LOG_OUTand returns 0, the behaviour of the retail console per OpenAGCgame_compat.c(3c7e8072: "on non-dev hardware, this is a no-op"; dev kits trap withud2), and the same model libkernel'ssceKernelDebugRaiseExceptionalready follows. Theuint32argument is KytyPS5's declaration (agc.h/agc.cppat6f0cddd4); OpenAGC declares no arguments, so the logged id may be register noise. Both and the unreproduced dev-kit trap are in TechnicalDebt.agc_commandsgains a call with0x1234abcdchecking it returns 0 and does not throw.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:agc_initializationandagc_commands3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"513/513;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T09:38:42Z.
Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.a647ca55onto currentmain(the branch was 75 commits behind): the commit applies cleanly, no conflicts.tools/check_conventions.py --base origin/mainandgit diff --checkpass.agc_initializationandagc_commandspass.ctest -j8 -E "^agc_driver_|^video_out_flip"): 520/520 passed.The rebased branch is available at
blawesom:verify/3360for anyone carrying — the commit is otherwise unchanged.