Repository navigation
feat(libSceUlt): implement sceUltUlthreadTryJoin, sceUltUlthreadRuntimeDestroy and the underscore ulthread exports - #2153
Conversation
Progress report (54f28f2 → 04dda44)📈 System libraries: 85.33% (+0.03%, +5 implemented functions) ✅ 5 implemented
|
|
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
No title was run. 🤖 Addressed by Claude Code |
…meDestroy and the underscore ulthread exports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fd7c096 to
04dda44
Compare
|
Checked: the 3 underscore forwarders, |
What
Rise of the Ronin (PPSA04540) imports these five libSceUlt functions, and none of them is exported:
_sceUltUlthreadRuntimeOptParamInitialize_sceUltUlthreadRuntimeCreate_sceUltUlthreadCreatesceUltUlthreadTryJoinsceUltUlthreadRuntimeDestroyOn
mainthe relinked title doesn't start, because the loader reports them as undefined symbols. The title imports no libSceUlt function without the underscore exceptsceUltInitialize,sceUltFinalize,sceUltUlthreadJoinandsceUltUlthreadRuntimeGetWorkAreaSize. So the underscore names are the exported entry points the SDK calls.sceUltUlthreadRuntimeOptParamInitialize,sceUltUlthreadRuntimeCreateandsceUltUlthreadCreate. Those already take the trailing build version argument.sceUltUlthreadTryJoin: returnsULT_ERROR_BUSYwhile the ulthread's entry has not returned. Otherwise it joins likesceUltUlthreadJoin.sceUltUlthreadRuntimeDestroy: returnsULT_ERROR_BUSYwhile an ulthread created on the runtime is not joined. Otherwise it forgets the runtime, so a latersceUltUlthreadCreateon it returnsULT_ERROR_STATE.The shared signatures and both busy rules are inferred. They are recorded in TechnicalDebt.
Tested
Linux (CachyOS, GCC), RX 9070 XT.
guest_ult_thread_tryjoinandguest_ult_thread_destroycover busy and joinedTryJoin, busy and idleRuntimeDestroy, a destroyed runtime, and the null and unknown cases, all through the underscore exports. The existingguest_ult_*tests still pass (10/10).tools/check_conventions.py: passes.computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable(Ghost of Yōtei: compute shader calls a user-data function pointer with s_swappc_b64 (not statically resolvable) #1817)._sceUltUlthreadRuntimeOptParamInitialize not implemented.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)🤖 Generated with Claude Code