Files
Thomas MartinandClaude Opus 5.5 344b6d4c2a IOP without hardware: what reaches the IOP's hardware counted ([iop:hw]), PS2X_IOP_HARDWARE=0 (no device behind its registers), and iop_recomp.py through switches and frameless leaves (nothing left interpreted)
[iop:hw], one line every 10 s of IOP clock: accesses to IOP hardware addresses by device (INTC, DMA, root counters, SIO2, SIO0, CDVD, SIF, SPU2, memory control, USB; IopMemory::setHardwareObserver), instructions the R3000 interpreter ran, interrupts a device model raised (as opposed to the API's own callbacks: timrman, vblank, cdvdman, sifman, native audio), SIO2 DMA transfers; whole-run totals. PS2X_IOP_REACH_DETAIL=1: the code behind each (module + offset), where the interpreter was entered and after which native code, the imports answered natively by library.

PS2X_IOP_HARDWARE=0, read as the IOP is constructed (a game override can set it): every hardware address is plain storage (reads give what was written, or 0), observed and without effect; the SIO2 and its DualShock 2 detached, the INTC registers not intrman's state, no DMA start, dmacman's SIO2 transfers do nothing. The default stays the models.

tools/iop_recomp.py: a JR on a register other than $ra (a switch through a jump table) makes every address inside the function that the image holds as a word a label and an entry, explored with the rest (the cases used to run interpreted up to the next entry, and code only they call was never recompiled); LUI pairs and data words pointing right after another function's JR $ra seed functions like prologues (leaves without a stack frame taken as pointers). Twisted Metal: Black's 989SND ran 30k-670k interpreted instructions per 10 s through its command dispatch (0x592a4's cases, 0x5abd0, leaves at 0x5ab9c, 0x5abb4, 0x5bcbc); now 410 -> 423 functions, PADMAN 130 -> 206, LGDEV 134 -> 159, LIBSD 57 -> 64, MCMAN 143 -> 153, and 0 instructions interpreted after boot.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 16:00:48 +01:00
..