5 Commits
Author SHA1 Message Date
Thomas Martin 72243d293a Merge remote-tracking branch 'origin/master' into jc2/native-irx-host 2026-11-23 23:20:24 +01:00
Thomas MartinandClaude Opus 5.5 7521b3ee07 ps2f / VU0 SIMD: products that round up to the smallest normals take the exact path
ps2f::mul's host shortcut (e1518bf) and VU0's four-field mul / madd / msub (5deab59) accepted any normal result. A
product just below 2^-126, (1 - 2^-24) * 2^-126 for example 0x00800000 * 0x3f7fffff, rounds up to 2^-126 on the host,
where the PS2 flushes it to zero and flags the underflow (0x4008 on the FPU). Results at exponent 1 now go the exact
way. A sum cannot do this: below 2^-126 a sum of normals is exact (a denormal, already the exact path's).

Found by TMB's native math suite (a VU0 basis product at the smallest normals). Tests: runtime_tests checks the FPU
cases; vu0_simd_tests sweeps products at the bottom of the normals (73109 failures before, none after). TMB's 1P and
4P replays are unchanged (RAM, sound, every recorded field).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 23:01:59 +01:00
Thomas MartinandClaude Opus 5.5 3a1b81ec54 Overlapping native modules: the one loaded over the other's tail wins
A game may load a module into another's span (JC2: a battle effect at
0x96B000 over the tail of the Arena's lesson script at 0x96A800). Both
headers then match and moduleAt threw "ambiguous native module identity",
ending the run. Where two resident modules cover an address, the one
starting higher wins; each module keeps the lowest other start inside its
span as the limit of the last-module fast path. Same-start ambiguity still
throws. Runtime test added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 19:42:27 +01:00
Thomas Martin 11cb6df323 Add reusable native image, compiled-library and port services 2026-11-06 02:47:13 +01:00
Thomas MartinandClaude Opus 5.5 ddcf5f9fcd bozo-replay: CPCOND0 from the sample's DMA register stores; runtime core tests: 9,232 of 9,232 samples
bc0f/bc0t are not out-calls, so the captures do not log CPCOND0. The reference answers it from its DMA state
(hierCheckVifComplete's samples read false, hierTraverseAsm's true after a VIF1 kick); the replay services rebuild
it from the sample's own stores: a CHCR store with STR finishes that channel at once, a D_STAT store clears what it
acknowledges, D_PCR selects the channels, nothing is finished at entry. With it every captured sample of the 24
capture folders matches bit for bit (1,518 functions).

bozo-runtime-tests: the flat space's guest views, overrides before generated code, ctx->pc for an override,
unknown targets to the services, ei/di on Status.EIE.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 02:37:11 +01:00