mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
1c56a8b78c
With the delay-slot fix the Beetle deltas were sane but not comparable: the three unrolled call sequences sat at different I-cache line offsets, and probe_run shared a line with seeded, so the KUSEG run found its first line already filled. Beetle read 59/59/89 (KUSEG/KSEG0/KSEG1), where the fetch model predicts a 23-cycle KSEG1 surcharge. Pad each call sequence so its first T2 read starts a line, and start probe_run on its own line. Beetle (disc boot, OpenBIOS and SCPH-1001 alike) now reads 56/56/82: KUSEG equals KSEG0, and KSEG1 exceeds them by 26 cycles, exactly the Beetle fetch-model difference for the 15 KSEG1 fetches (60 vs a cold cached 34). probe_run moves to 0x000100F0. Ledger ids are unchanged; fetch-tag-segment counts 30 tags and alias-fetch-coherence reads 22 vs Beetle 11, because leaf now straddles two lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>