mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
4ddccccaa9
recompiler/code_generator.cpp: stamp g_debug_last_store_pc before EVERY game store (SB/SH/SWL/SW/SWR, SWC2, + the ws-backdrop / game-option special paths) and declare the extern in the game-C preamble. Previously only the BIOS emitter (strict_translator.cpp) stamped it, so game stores inherited the last BIOS store pc -> wtrace/readtrace mis-attributed game writes to the BIOS. VERIFIED LIVE: MMX6's producer trace for the 0x800CD3F8 write now reports the real game store pc 0x8001A708 (matches Beetle), not the stale 0xBFC11BF0. runtime: g_pc0_reason slice-exit provenance, fail-closed exception-sentinel asserts, named thread-event kinds, freeze-heartbeat RVA emission (diagnostics, default-on, additive). Carries the in-progress faithful-timing / MDEC work (cpu_state.h, memory.c, dma.c, interrupts.c, dirty_ram_interp.c, full_function_emitter.cpp) as an uncommitted-WIP checkpoint. tools/: regen_bios.sh, bios_emitter_fingerprint.sh. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>