libSceAgc: sceAgcDebugRaiseException is a stub (Palworld, 007 First Light import); fix branch ready #3360

Closed
opened 2026-10-11 08:51:28 +00:00 by screamm · 1 comment
screamm commented 2026-10-11 08:51:28 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T08:51:28Z.


sceAgcDebugRaiseException (libSceAgc, NID T6xuVw0KUJo) is a NotImplemented_nid_no_patch stub. Palworld (PPSA23126, #2598) and 007 First Light (PPSA11386, #2523) import it.

Fix branch ready: screamm:feat/agc-debug-raise-exception (a647ca55, one commit on main 7028457e). 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.

  • New Misc/src/Debug.cpp: int sceAgcDebugRaiseException(uint32_t exceptionId) logs the id with APS5_LOG_OUT and returns 0, the behaviour of the retail console per OpenAGC game_compat.c (3c7e8072: "on non-dev hardware, this is a no-op"; dev kits trap with ud2), and the same model libkernel's sceKernelDebugRaiseException already follows. The uint32 argument is KytyPS5's declaration (agc.h/agc.cpp at 6f0cddd4); OpenAGC declares no arguments, so the logged id may be register noise. Both and the unreproduced dev-kit trap are in TechnicalDebt.
  • agc_commands gains a call with 0x1234abcd checking 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 including libs: agc_initialization and agc_commands 3/3; ctest -j8 -E "^agc_driver_|^video_out_flip" 513/513; tools/check_conventions.py --base main and git diff --check pass. Not run on Linux.

Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5799556089 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3360). Originally posted by [screamm](https://github.com/screamm) on 2026-10-11T08:51:28Z. --- `sceAgcDebugRaiseException` (libSceAgc, NID `T6xuVw0KUJo`) is a `NotImplemented_nid_no_patch` stub. Palworld (PPSA23126, #2598) and 007 First Light (PPSA11386, #2523) import it. **Fix branch ready:** [`screamm:feat/agc-debug-raise-exception`](https://github.com/screamm/AnyPS5/tree/feat/agc-debug-raise-exception) (`a647ca55`, one commit on `main` `7028457e`). 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. - New `Misc/src/Debug.cpp`: `int sceAgcDebugRaiseException(uint32_t exceptionId)` logs the id with `APS5_LOG_OUT` and returns 0, the behaviour of the retail console per OpenAGC `game_compat.c` (`3c7e8072`: "on non-dev hardware, this is a no-op"; dev kits trap with `ud2`), and the same model libkernel's `sceKernelDebugRaiseException` already follows. The `uint32` argument is KytyPS5's declaration (`agc.h`/`agc.cpp` at `6f0cddd4`); OpenAGC declares no arguments, so the logged id may be register noise. Both and the unreproduced dev-kit trap are in TechnicalDebt. - `agc_commands` gains a call with `0x1234abcd` checking 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 including `libs`: `agc_initialization` and `agc_commands` 3/3; `ctest -j8 -E "^agc_driver_|^video_out_flip"` 513/513; `tools/check_conventions.py --base main` and `git diff --check` pass. Not run on Linux. Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
blawesom commented 2026-10-11 09:38:42 +00:00 (Migrated from github.com)
Author
Contributor

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.

  • Rebased a647ca55 onto current main (the branch was 75 commits behind): the commit applies cleanly, no conflicts.
  • tools/check_conventions.py --base origin/main and git diff --check pass.
  • agc_initialization and agc_commands pass.
  • Full suite mirroring the Windows run (ctest -j8 -E "^agc_driver_|^video_out_flip"): 520/520 passed.

The rebased branch is available at blawesom:verify/3360 for anyone carrying — the commit is otherwise unchanged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107664937 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3360#issuecomment-6107664937). Originally posted by [blawesom](https://github.com/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`. - Rebased `a647ca55` onto current `main` (the branch was 75 commits behind): the commit applies cleanly, no conflicts. - `tools/check_conventions.py --base origin/main` and `git diff --check` pass. - `agc_initialization` and `agc_commands` pass. - Full suite mirroring the Windows run (`ctest -j8 -E "^agc_driver_|^video_out_flip"`): **520/520 passed**. The rebased branch is available at [`blawesom:verify/3360`](https://github.com/blawesom/AnyPS5/tree/verify/3360) for anyone carrying — the commit is otherwise unchanged.
Sign in to join this conversation.
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#3360
No description provided.