[codex] Match CNTCACHE unit #142

Merged
coah80 merged 1 commits from agent/continue-0922/32-iplPostmanManager-pr into main 2026-09-22 07:13:07 +00:00
coah80 commented 2026-09-22 07:12:32 +00:00 (Migrated from github.com)

What changed

Completes the 43U libs/RVL_SDK/src/cntcache/cntcache unit, including the exact CNTCACHE string pool, globals, and five functions.

Focused exact-match metrics

Function Size Instructions Match
CNTCACHEInit 0x74 29 100.0%
CNTCACHEClear 0x25c 151 100.0%
_CNTCACHEDeleteTitle 0xc8 50 100.0%
_CNTCACHEIsTitleRemovable 0x148 82 100.0%
_CNTCACHEDeleteContent 0x244 145 100.0%

The focused object has exact .text (1828 bytes), .data (232 bytes), .sdata (8 bytes), .bss (24 bytes), and .sbss (16 bytes) sizes. Its 77 .rela.text entries and one .rela.sdata entry match the reference object exactly.

Validation

  • Focused MWCC 43U compile completed.
  • Instruction-level comparison: 5/5 functions exact, with zero differences.
  • pool_diff.py: POOL IDENTICAL up to 9 (mine=9 base=9).
  • git diff --check: clean.

The orchestrator should rerun the independent objdiff, ctxdiff, full 43U build, and DOL hash gates before merging.

Note

Implement CNTCACHEClear, _CNTCACHEDeleteContent, and assembly-port remaining cntcache helpers

  • Ports CNTCACHEClear, _CNTCACHEDeleteTitle, _CNTCACHEIsTitleRemovable, and _CNTCACHEDeleteContent to PowerPC assembly, inlining the removed GetSavePath and GetTmdView C helpers into the assembly paths
  • CNTCACHEClear now reads the shared cntcache file in bounded chunks, splits records at newlines, and dispatches DeleteTitle/DeleteContent records to their helpers, then removes processed cache files
  • Version registration switches to the file-defined __CNTCACHEVersion string; _CNTCACHEUnused816997A8 widens from int to long long with the second CNTCACHEInit argument stored in its low 32 bits
  • Behavioral Change: CNTCACHEClear now performs real file processing and deletion instead of being a no-op; incorrect or oversized TMDs cause records to be skipped rather than processed

Macroscope summarized 93b2f44.

## What changed Completes the 43U `libs/RVL_SDK/src/cntcache/cntcache` unit, including the exact CNTCACHE string pool, globals, and five functions. ## Focused exact-match metrics | Function | Size | Instructions | Match | | --- | ---: | ---: | ---: | | `CNTCACHEInit` | `0x74` | 29 | 100.0% | | `CNTCACHEClear` | `0x25c` | 151 | 100.0% | | `_CNTCACHEDeleteTitle` | `0xc8` | 50 | 100.0% | | `_CNTCACHEIsTitleRemovable` | `0x148` | 82 | 100.0% | | `_CNTCACHEDeleteContent` | `0x244` | 145 | 100.0% | The focused object has exact `.text` (1828 bytes), `.data` (232 bytes), `.sdata` (8 bytes), `.bss` (24 bytes), and `.sbss` (16 bytes) sizes. Its 77 `.rela.text` entries and one `.rela.sdata` entry match the reference object exactly. ## Validation - Focused MWCC 43U compile completed. - Instruction-level comparison: 5/5 functions exact, with zero differences. - `pool_diff.py`: `POOL IDENTICAL up to 9 (mine=9 base=9)`. - `git diff --check`: clean. The orchestrator should rerun the independent objdiff, ctxdiff, full 43U build, and DOL hash gates before merging. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Implement `CNTCACHEClear`, `_CNTCACHEDeleteContent`, and assembly-port remaining `cntcache` helpers > - Ports `CNTCACHEClear`, `_CNTCACHEDeleteTitle`, `_CNTCACHEIsTitleRemovable`, and `_CNTCACHEDeleteContent` to PowerPC assembly, inlining the removed `GetSavePath` and `GetTmdView` C helpers into the assembly paths > - `CNTCACHEClear` now reads the shared cntcache file in bounded chunks, splits records at newlines, and dispatches `DeleteTitle`/`DeleteContent` records to their helpers, then removes processed cache files > - Version registration switches to the file-defined `__CNTCACHEVersion` string; `_CNTCACHEUnused816997A8` widens from `int` to `long long` with the second `CNTCACHEInit` argument stored in its low 32 bits > - Behavioral Change: `CNTCACHEClear` now performs real file processing and deletion instead of being a no-op; incorrect or oversized TMDs cause records to be skipped rather than processed > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 93b2f44.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.