7 Commits
Author SHA1 Message Date
Thomas MartinandClaude Opus 5.5 fc9724d5ca Build on BozoEngine's releases instead of the submodule (0.7.0)
cmake/bozo_engine.json pins BozoEngine 0.7.0 by version and SHA-256;
cmake/bozo_engine_fetch.cmake (TMB_Recomp#121's scheme) fetches and checks it
into external/BozoEngine when configuring. VP2S_BOZO_ENGINE_ROOT (or
tools/vp2_bozo.py --engine) still builds on a local engine checkout, and the
IRX fixtures follow it. The submodule is gone; a test checks the pin.

A clean clone and the old submodule build end the 8 bench scenes and a
12000-frame boot route with byte-identical RAM; tests 101/101.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 00:09:55 +01:00
Thomas MartinandClaude Opus 5.5 34a706efa5 Load the title overlay: sound driver, VU0 key, missing code; native pipeline
Boot now loads the core and title overlays and runs their code (screen still
black):
- fork: EE->IOP SIF commands, sysmem-like IOP heap, PS2 FMAC addition (the
  overlay decryption key is computed on VU0), initializers from entry points.
- wrap_elf: executable .init for CodeWarrior static initializers; .text
  extended over functions that run past the header's text size.
- find_entry_points: constructor tables, cross-input pointers and jal targets
  with a transitive closure, functions after alignment padding; the boot
  ELF's code limited to Ghidra's function blocks.
- pipeline: no Docker (Python + MSVC tools), test stage, recomp output synced
  file by file, report figures cached; port: unity groups by address range
  so a regeneration only rebuilds what changed.
- port: VP2S_DUMP memory dumps, CD manager / file queue / sound transfer
  diagnostics, debug panel hidden at start.
- scripts: decompile.py (Ghidra headless), mipsdis.py (IOP disassembly).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 03:37:31 +02:00
Thomas MartinandClaude Opus 5.5 b7daba0bae Bind Sony SDK functions and boot further: file table read, threads up
- tools/pipeline.py: sdk stage (ps2_analyzer signatures, 177 bindings
  merged into the recompiler config) and entries stage
  (tools/find_entry_points.py: functions reached only through pointers)
- port/main.cpp: VP2S_DIAG now dumps every guest thread, semaphores with
  waiters and the CD manager state
- ghidra_scripts/Decompile.java: creates missing functions on the fly
- docs: boot progress, file table at LBA 1024 identified (XOR stream)
- external/PS2Recomp: stub synthesis for unmapped bindings, CD callback

The game now reads and decrypts its file table and starts its threads;
it waits on IOP RPC replies (sound driver) next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-20 22:38:57 +02:00
Thomas MartinandClaude Opus 5.5 73f6779a1b Add fresh-clone check for the submodule fork
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-20 19:48:36 +02:00
Thomas MartinandClaude Opus 5.5 5289535618 Add PS2Recomp fork with overlay module support
- external/PS2Recomp: submodule on vp2s/overlay-dispatch (upstream eb8688b
  + overlay module mode: per-module recompilation, resident dispatch by
  guard bytes, 6 tests; suite 451/451 under g++ 13)
- tools/wrap_elf.py: .modhdr section so the module header serves as guard
- scripts: build_ps2recomp_tests.sh (offline deps, SSE4 flags for g++),
  check_module_link.py (two modules at one address compile together, no
  duplicate symbols), run_recomp.sh module-name argument
- toolchain/Dockerfile: X11/GL/ALSA dev packages for the runtime build
- docs/RECOMPILER.md: implementation and validation results

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-20 19:46:51 +02:00
Thomas MartinandClaude Opus 5.5 b1690586b3 Add recompiler evaluation, ELF wrapper and PS2Recomp test scripts
- docs/RECOMPILER.md: PS2Recomp chosen as base (fork with per-slot overlay
  dispatch); test results on the main ELF and module 3, alternatives
- tools/wrap_elf.py: wraps an extracted module into a minimal R5900 ELF at
  its load address, header kept in memory, sections from the module header
- scripts/build_ps2recomp.sh, run_recomp.sh, count_mnemonics.sh
- toolchain/Dockerfile: CMake, Ninja and g++ for C++20 builds
- docs/AUDIT.md: next steps updated

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-20 19:11:48 +02:00
Thomas MartinandClaude Opus 5.5 0cfd512cf4 Add disc extractor, reverse-engineering tools and feasibility audit
- tools/extract.py: pure-Python extractor for SLES-54645 (ISO9660, SLZ chains,
  SLE decryption, module/overlay export with ELF segment validation, IRX, index)
- tools/slz.py: tri-Ace SLZ types 0-3 and SLE decryption, reimplemented from
  the game's own routines
- scripts/, ghidra_scripts/: exploration scripts used during the audit
- toolchain/Dockerfile: analysis container (binutils MIPS, Python)
- docs/AUDIT.md: phase 1 and 2 feasibility audit (GO for static recompilation)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-20 18:57:22 +02:00