mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 10:19:47 -04:00
2b5e69fe8f
cyc_watch + cycle_compare.py now take an optional END anchor: each recorded value is Δcycles of one START->END pass (cost of the known code path between two dispatch points). [A,A] = Δ between consecutive A hits (call-to-call cost). Mirrored EXACTLY on both backends (native debug_server.c + Beetle libretro.cpp/beetle_debug_server.c, the latter uncommitted in main checkout, additive). VALIDATED: region [0x80017FC4, 0x80017FC4] = native Δ 56 vs Beetle Δ 91, gap -35, ZERO variance across 8 passes — a stable, offset-independent per-region gate to drive Stage-2 components to convergence (faithful components shrink the gap monotonically; can't overshoot). Note: [A,B] with distinct B needs B to reliably follow A (a dispatch point on the deterministic path); B=0x8001EFFC failed (func has multiple exits) — pick wrapper/ single-exit pairs or use [A,A]. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>