PlayAgain 0106 (fork side, harness only): the worker's validationPaJitRange {lo, hi} calls DolphinWeb_PaJitRangeForTest (harness hooks only). SPDX-License-Identifier: GPL-2.0-or-later --- a/src/upstream-discio-worker.js +++ b/src/upstream-discio-worker.js @@ -2665,6 +2665,13 @@ case "validationPaReplay": // PlayAgain 0102: frame-locked replay (pad and Wii Remote scripts) and digests. return harnessPaReplay(payload); + case "validationPaJitRange": + // PlayAgain 0106 (harness only): wasm blocks only for block starts in [lo, hi); takes effect + // for blocks compiled from now on (a state load clears the JIT cache). + if (!harnessEnabled) return { error: "harness hooks are off" }; + if (typeof moduleInstance?._DolphinWeb_PaJitRangeForTest !== "function") return { error: "core lacks PlayAgain 0106" }; + moduleInstance._DolphinWeb_PaJitRangeForTest((payload.lo ?? 0) >>> 0, (payload.hi ?? 0xffffffff) >>> 0); + return { ok: true, lo: (payload.lo ?? 0) >>> 0, hi: (payload.hi ?? 0xffffffff) >>> 0 }; case "validationPaPeek": { // PlayAgain 0102: guest MEM1 bytes (big-endian words as in RAM) at an effective address, for // the PC histogram's loop check. Read while the game runs: a snapshot, not a frame-exact copy.